[CHG] Moving stuff around (step 1)
Before Width: | Height: | Size: 17 KiB After Width: | Height: | Size: 17 KiB |
Before Width: | Height: | Size: 3.2 KiB After Width: | Height: | Size: 3.2 KiB |
Before Width: | Height: | Size: 6.4 KiB After Width: | Height: | Size: 6.4 KiB |
Before Width: | Height: | Size: 932 B After Width: | Height: | Size: 932 B |
Before Width: | Height: | Size: 6.2 KiB After Width: | Height: | Size: 6.2 KiB |
Before Width: | Height: | Size: 15 KiB After Width: | Height: | Size: 15 KiB |
Before Width: | Height: | Size: 13 KiB After Width: | Height: | Size: 13 KiB |
|
@ -105,13 +105,13 @@ int main() {
|
||||||
{
|
{
|
||||||
case 1: // Draw images
|
case 1: // Draw images
|
||||||
GRRLIB_Printf(5, 25, tex_BMfont2, GRRLIB_WHITE, 1, "IMAGES DEMO");
|
GRRLIB_Printf(5, 25, tex_BMfont2, GRRLIB_WHITE, 1, "IMAGES DEMO");
|
||||||
|
|
||||||
GRRLIB_BMFX_Scatter(tex_test_jpg, tex_new, 8);
|
GRRLIB_BMFX_Scatter(tex_test_jpg, tex_new, 8);
|
||||||
GRRLIB_FlushTex(tex_new);
|
GRRLIB_FlushTex(tex_new);
|
||||||
|
|
||||||
GRRLIB_DrawImg(10, 50, tex_test_jpg, 0, 1, 1, GRRLIB_WHITE);
|
GRRLIB_DrawImg(10, 50, tex_test_jpg, 0, 1, 1, GRRLIB_WHITE);
|
||||||
GRRLIB_DrawImg(310, 50, tex_new, 0, 1, 1, GRRLIB_WHITE);
|
GRRLIB_DrawImg(310, 50, tex_new, 0, 1, 1, GRRLIB_WHITE);
|
||||||
|
|
||||||
// Draw a sprite
|
// Draw a sprite
|
||||||
GRRLIB_DrawTile(600, 400, tex_sprite_png, 0, 2, 2, GRRLIB_WHITE, 12*4); // Rupee
|
GRRLIB_DrawTile(600, 400, tex_sprite_png, 0, 2, 2, GRRLIB_WHITE, 12*4); // Rupee
|
||||||
GRRLIB_DrawTile(320+left, 240+top, tex_sprite_png, 0, 2, 2, GRRLIB_WHITE, frame);
|
GRRLIB_DrawTile(320+left, 240+top, tex_sprite_png, 0, 2, 2, GRRLIB_WHITE, frame);
|
|
@ -30,8 +30,8 @@ inline void GRRLIB_FillScreen(u32 color) {
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Draw a dot.
|
* Draw a dot.
|
||||||
* @param x specifies the x-coordinate of the dot.
|
* @param x specifies the x-coordinate of the dot.
|
||||||
* @param y specifies the y-coordinate of the dot.
|
* @param y specifies the y-coordinate of the dot.
|
||||||
* @param color the color of the dot.
|
* @param color the color of the dot.
|
||||||
*/
|
*/
|
||||||
inline void GRRLIB_Plot(f32 x, f32 y, u32 color) {
|
inline void GRRLIB_Plot(f32 x, f32 y, u32 color) {
|
||||||
|
@ -536,7 +536,7 @@ void GRRLIB_BMFX_GrayScale(GRRLIB_texImg texsrc, GRRLIB_texImg texdest) {
|
||||||
* @see GRRLIB_FlushTex
|
* @see GRRLIB_FlushTex
|
||||||
* @param texsrc the texture source.
|
* @param texsrc the texture source.
|
||||||
* @param texdest the texture grayscaled destination.
|
* @param texdest the texture grayscaled destination.
|
||||||
* @param factor The factor level of the effect.
|
* @param factor The factor level of the effect.
|
||||||
*/
|
*/
|
||||||
void GRRLIB_BMFX_Scatter(GRRLIB_texImg texsrc, GRRLIB_texImg texdest, int factor) {
|
void GRRLIB_BMFX_Scatter(GRRLIB_texImg texsrc, GRRLIB_texImg texdest, int factor) {
|
||||||
unsigned int x, y;
|
unsigned int x, y;
|