Commit 4f3f7b55 authored by Scott Duensing's avatar Scott Duensing

Updated to work with new JoeyLib graphics function names.

parent 13953072
......@@ -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++) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment