Updated to work with new JoeyLib graphics function names.
This commit is contained in:
parent
1395307241
commit
4f3f7b55c2
4 changed files with 6 additions and 6 deletions
|
@ -64,7 +64,7 @@ int main(void) {
|
|||
"#ifndef H_J3DTBLS_\n"
|
||||
"#define H_J3DTBLS_\n\n"
|
||||
"#include \"j3d.h\"\n\n"
|
||||
"nstatic jreal sinTable[] = {\n\t"
|
||||
"static jreal sinTable[] = {\n\t"
|
||||
);
|
||||
|
||||
// Build look-up tables for speed later
|
||||
|
|
|
@ -173,7 +173,7 @@ void j3DrawTriangle2D(jint16 x1, jint16 y1, jint16 x2,jint16 y2, jint16 x3, jint
|
|||
return;
|
||||
}
|
||||
|
||||
jlDrawColor((byte)color);
|
||||
jlDrawColorSet((byte)color);
|
||||
|
||||
// Is top of triangle flat?
|
||||
if (y1 == y2) {
|
||||
|
|
|
@ -25,7 +25,7 @@
|
|||
|
||||
#include "j3d.h"
|
||||
|
||||
nstatic jreal sinTable[] = {
|
||||
static jreal sinTable[] = {
|
||||
0.0000000, 0.0174524, 0.0348995, 0.0523360, 0.0697565, 0.0871557,
|
||||
0.1045285, 0.1218693, 0.1391731, 0.1564345, 0.1736482, 0.1908090,
|
||||
0.2079117, 0.2249510, 0.2419219, 0.2588190, 0.2756374, 0.2923717,
|
||||
|
|
|
@ -52,7 +52,7 @@ void printAt(jlStaT *font, jint16 cx, jint16 cy, const char *what, ...) {
|
|||
for (counter=0; counter<(int)strlen(msg); counter++) {
|
||||
x = msg[counter] % 40;
|
||||
y = msg[counter] / 40;
|
||||
jlDrawBlit8x8(font, x, y, counter + cx, cy);
|
||||
jlDrawBlit8x8(jlStaSurfaceGet(font), x, y, counter + cx, cy);
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -128,9 +128,9 @@ int main(void) {
|
|||
}
|
||||
|
||||
while (!jlKeyPressed() && !jlUtilMustExit()) {
|
||||
jlDrawColor(0);
|
||||
jlDrawColorSet(0);
|
||||
jlDrawClear();
|
||||
jlDrawColor(15);
|
||||
jlDrawColorSet(15);
|
||||
jlDrawBox(0, 0, 319, 199);
|
||||
|
||||
for (x=0; x<world->objectCount; x++) {
|
||||
|
|
Loading…
Add table
Reference in a new issue