19 lines
343 B
C++
19 lines
343 B
C++
#include "jUnit.h"
|
|
|
|
void init()
|
|
{
|
|
jInit("tutorial_paleta", 320, 240, 2);
|
|
jSetPal(0, 0x00000000);
|
|
jSetPal(1, 0xffff0000);
|
|
jSetPal(2, 0xffffffff);
|
|
jCls(0);
|
|
jSurface peiv = jLoadSurface("williams.gif");
|
|
jLoadPal("williams.gif");
|
|
jSetSource(peiv);
|
|
}
|
|
|
|
void update()
|
|
{
|
|
jCls(0);
|
|
jBlit(0, 0, 0, 0, 29, 64);
|
|
} |