- Main Page
- Classes
- Files

- File List
- File Members

# graphicsOld.h File Reference

Go to the source code of this file.

## Defines
#define | g_vram_base (u32*)(MEMORY_VMEM_BASE | MEMORY_UNCACHED_OFFSET);
#define | PSP_LINE_SIZE SCREEN_STRIDE
#define | A(color) ((u8)(color >> 24 & 0xFF))
#define | B(color) ((u8)(color >> 16 & 0xFF))
#define | G(color) ((u8)(color >> 8 & 0xFF))
#define | R(color) ((u8)(color & 0xFF))
#define | IS_ALPHA(color) (((color) & 0xff000000) == 0xff000000 ? 0 : 1)
#define | FRAMEBUFFER_SIZE ((SCREEN_STRIDE * SCREEN_HEIGHT) << 2)
#define | MAX(X, Y) max(x, y)
#define | Color u32
#define | Image Texture
#define | loadImage(filename) texLoad(filename)
#define | blitImageToScreen(sx, sy, width, height, source, dx, dy) graphics2dDrawTextureSection(dx, dy, width, height, source, sx, sy, width, height)
#define | blitAlphaImageToScreen(sx, sy, width, height, source, dx, dy) graphics2dDrawTextureSection(dx, dy, width, height, source, sx, sy, width, height)
#define | createImage(width, height) texCreate(width, height, GU_PSM_8888)
#define | freeImage(image) texFree(image)
#define | fillScreenRect(color, x0, y0, width, height) graphics2dDrawRectFilled(x0, y0, width, height, color)
#define | putPixelScreen(color, x, y) graphics2dDrawPoint(x, y, color)
#define | flipScreen() graphicsSwapBuffers()
#define | initGraphics() graphicsInit()
#define | disableGraphics() graphicsTerm()
#define | drawLineScreen(x0, y0, x1, y1, color) graphics2dDrawLine(x0, y0, x1, y1, color)
#define | getVramDrawBuffer() graphicsDrawBuffer
#define | getVramDisplayBuffer() graphicsDisplayBuffer

## Define Documentation

#define A | ( | color |  | ) | ((u8)(color >> 24 & 0xFF))

Definition at line 5 of file graphicsOld.h.

#define B | ( | color |  | ) | ((u8)(color >> 16 & 0xFF))

Definition at line 6 of file graphicsOld.h.

#define blitAlphaImageToScreen | ( | sx,
|  | sy,
|  | width,
|  | height,
|  | source,
|  | dx,
|  | dy |  | ) | graphics2dDrawTextureSection(dx, dy, width, height, source, sx, sy, width, height)

Definition at line 25 of file graphicsOld.h.

#define blitImageToScreen | ( | sx,
|  | sy,
|  | width,
|  | height,
|  | source,
|  | dx,
|  | dy |  | ) | graphics2dDrawTextureSection(dx, dy, width, height, source, sx, sy, width, height)

Definition at line 23 of file graphicsOld.h.

#define Color u32

Definition at line 14 of file graphicsOld.h.

#define createImage | ( | width,
|  | height |  | ) | texCreate(width, height, GU_PSM_8888)

Definition at line 26 of file graphicsOld.h.

#define disableGraphics | ( |  | ) | graphicsTerm()

Definition at line 41 of file graphicsOld.h.

#define drawLineScreen | ( | x0,
|  | y0,
|  | x1,
|  | y1,
|  | color |  | ) | graphics2dDrawLine(x0, y0, x1, y1, color)

Definition at line 42 of file graphicsOld.h.

#define fillScreenRect | ( | color,
|  | x0,
|  | y0,
|  | width,
|  | height |  | ) | graphics2dDrawRectFilled(x0, y0, width, height, color)

Definition at line 31 of file graphicsOld.h.

#define flipScreen | ( |  | ) | graphicsSwapBuffers()

Definition at line 39 of file graphicsOld.h.

#define FRAMEBUFFER_SIZE ((SCREEN_STRIDE * SCREEN_HEIGHT) << 2)

Definition at line 11 of file graphicsOld.h.

#define freeImage | ( | image |  | ) | texFree(image)

Definition at line 27 of file graphicsOld.h.

#define G | ( | color |  | ) | ((u8)(color >> 8 & 0xFF))

Definition at line 7 of file graphicsOld.h.

#define g_vram_base (u32*)(MEMORY_VMEM_BASE | MEMORY_UNCACHED_OFFSET);

Definition at line 1 of file graphicsOld.h.

#define getVramDisplayBuffer | ( |  | ) | graphicsDisplayBuffer

Definition at line 45 of file graphicsOld.h.

#define getVramDrawBuffer | ( |  | ) | graphicsDrawBuffer

Definition at line 44 of file graphicsOld.h.

#define Image Texture

Definition at line 16 of file graphicsOld.h.

#define initGraphics | ( |  | ) | graphicsInit()

Definition at line 40 of file graphicsOld.h.

#define IS_ALPHA | ( | color |  | ) | (((color) & 0xff000000) == 0xff000000 ? 0 : 1)

Definition at line 10 of file graphicsOld.h.

#define loadImage | ( | filename |  | ) | texLoad(filename)

Definition at line 21 of file graphicsOld.h.

#define MAX | ( | X,
|  | Y |  | ) | max(x, y)

Definition at line 12 of file graphicsOld.h.

#define PSP_LINE_SIZE SCREEN_STRIDE

Definition at line 3 of file graphicsOld.h.

#define putPixelScreen | ( | color,
|  | x,
|  | y |  | ) | graphics2dDrawPoint(x, y, color)

Definition at line 32 of file graphicsOld.h.

#define R | ( | color |  | ) | ((u8)(color & 0xFF))

Definition at line 8 of file graphicsOld.h.