Add more samples
This commit is contained in:
parent
1d14478802
commit
566fc8134d
|
@ -54,4 +54,15 @@ add_executable(depth_funcs_ortho samples/depth_funcs_ortho/main.c)
|
||||||
add_executable(lights samples/lights/main.c)
|
add_executable(lights samples/lights/main.c)
|
||||||
add_executable(mipmap samples/mipmap/main.c)
|
add_executable(mipmap samples/mipmap/main.c)
|
||||||
add_executable(multitexture_arrays samples/multitexture_arrays/main.c samples/multitexture_arrays/pvr-texture.c)
|
add_executable(multitexture_arrays samples/multitexture_arrays/main.c samples/multitexture_arrays/pvr-texture.c)
|
||||||
|
add_executable(nehe02de samples/nehe02de/main.c)
|
||||||
|
add_executable(nehe06 samples/nehe06/main.c)
|
||||||
|
add_executable(paletted samples/paletted/main.c)
|
||||||
|
add_executable(paletted_pcx samples/paletted_pcx/main.c)
|
||||||
|
add_executable(polygon_offset samples/polygon_offset/main.c)
|
||||||
|
add_executable(zclip samples/zclip/main.c)
|
||||||
|
add_executable(zclip_triangle samples/zclip_triangle/main.c)
|
||||||
|
add_executable(zclip_trianglestrip samples/zclip_trianglestrip/main.c)
|
||||||
|
|
||||||
|
if(PLATFORM_DREAMCAST)
|
||||||
|
add_executable(polymark samples/polymark/main.c)
|
||||||
|
endif()
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
#include "gl.h"
|
#include "GL/gl.h"
|
||||||
#include "glu.h"
|
#include "GL/glu.h"
|
||||||
#include "glkos.h"
|
#include "GL/glkos.h"
|
||||||
|
|
||||||
/* A general OpenGL initialization function. Sets all of the initial parameters. */
|
/* A general OpenGL initialization function. Sets all of the initial parameters. */
|
||||||
void InitGL(int Width, int Height) // We call this right after our OpenGL window is created.
|
void InitGL(int Width, int Height) // We call this right after our OpenGL window is created.
|
||||||
|
|
|
@ -1,10 +1,14 @@
|
||||||
#include <stdio.h>
|
#include <stdio.h>
|
||||||
|
#include <stdint.h>
|
||||||
|
#include <stdlib.h>
|
||||||
|
#include <stdio.h>
|
||||||
|
|
||||||
#include "gl.h"
|
#include "GL/gl.h"
|
||||||
#include "glu.h"
|
#include "GL/glu.h"
|
||||||
#include "glkos.h"
|
#include "GL/glext.h"
|
||||||
|
#include "GL/glkos.h"
|
||||||
|
|
||||||
extern uint8 romdisk[];
|
extern uint8_t romdisk[];
|
||||||
KOS_INIT_ROMDISK(romdisk);
|
KOS_INIT_ROMDISK(romdisk);
|
||||||
|
|
||||||
/* floats for x rotation, y rotation, z rotation */
|
/* floats for x rotation, y rotation, z rotation */
|
||||||
|
|
|
@ -1,13 +1,14 @@
|
||||||
#include <stdio.h>
|
#include <stdio.h>
|
||||||
#include <string.h>
|
#include <string.h>
|
||||||
#include <stdlib.h>
|
#include <stdlib.h>
|
||||||
|
#include <stdint.h>
|
||||||
|
|
||||||
#include "gl.h"
|
#include "GL/gl.h"
|
||||||
#include "glext.h"
|
#include "GL/glext.h"
|
||||||
#include "glu.h"
|
#include "GL/glu.h"
|
||||||
#include "glkos.h"
|
#include "GL/glkos.h"
|
||||||
|
|
||||||
extern uint8 romdisk[];
|
extern uint8_t romdisk[];
|
||||||
KOS_INIT_ROMDISK(romdisk);
|
KOS_INIT_ROMDISK(romdisk);
|
||||||
|
|
||||||
/* floats for x rotation, y rotation, z rotation */
|
/* floats for x rotation, y rotation, z rotation */
|
||||||
|
|
|
@ -4,12 +4,12 @@
|
||||||
#include <stdint.h>
|
#include <stdint.h>
|
||||||
#include <assert.h>
|
#include <assert.h>
|
||||||
|
|
||||||
#include "gl.h"
|
#include "GL/gl.h"
|
||||||
#include "glext.h"
|
#include "GL/glu.h"
|
||||||
#include "glu.h"
|
#include "GL/glext.h"
|
||||||
#include "glkos.h"
|
#include "GL/glkos.h"
|
||||||
|
|
||||||
extern uint8 romdisk[];
|
extern uint8_t romdisk[];
|
||||||
KOS_INIT_ROMDISK(romdisk);
|
KOS_INIT_ROMDISK(romdisk);
|
||||||
|
|
||||||
/* floats for x rotation, y rotation, z rotation */
|
/* floats for x rotation, y rotation, z rotation */
|
||||||
|
|
|
@ -1,12 +1,13 @@
|
||||||
#include <kos.h>
|
|
||||||
typedef enum
|
typedef enum
|
||||||
{
|
{
|
||||||
false,
|
false,
|
||||||
true
|
true
|
||||||
} bool;
|
} bool;
|
||||||
#include "gl.h"
|
|
||||||
#include "glu.h"
|
#include "GL/gl.h"
|
||||||
#include "glkos.h"
|
#include "GL/glu.h"
|
||||||
|
#include "GL/glkos.h"
|
||||||
|
|
||||||
/* A general OpenGL initialization function. Sets all of the initial parameters. */
|
/* A general OpenGL initialization function. Sets all of the initial parameters. */
|
||||||
void InitGL(int Width, int Height) // We call this right after our OpenGL window is created.
|
void InitGL(int Width, int Height) // We call this right after our OpenGL window is created.
|
||||||
|
@ -96,6 +97,7 @@ void drawPolygon()
|
||||||
int frames = 0;
|
int frames = 0;
|
||||||
void check_input()
|
void check_input()
|
||||||
{
|
{
|
||||||
|
#ifdef __DREAMCAST__
|
||||||
maple_device_t *cont;
|
maple_device_t *cont;
|
||||||
cont_state_t *state;
|
cont_state_t *state;
|
||||||
|
|
||||||
|
@ -117,6 +119,7 @@ void check_input()
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
#endif
|
||||||
}
|
}
|
||||||
|
|
||||||
/* The main drawing function. */
|
/* The main drawing function. */
|
||||||
|
|
|
@ -1,13 +1,14 @@
|
||||||
#include <stdio.h>
|
#include <stdio.h>
|
||||||
#include <string.h>
|
#include <string.h>
|
||||||
#include <stdlib.h>
|
#include <stdlib.h>
|
||||||
|
#include <stdint.h>
|
||||||
|
|
||||||
#include "gl.h"
|
#include "GL/gl.h"
|
||||||
#include "glext.h"
|
#include "GL/glu.h"
|
||||||
#include "glu.h"
|
#include "GL/glext.h"
|
||||||
#include "glkos.h"
|
#include "GL/glkos.h"
|
||||||
|
|
||||||
extern uint8 romdisk[];
|
extern uint8_t romdisk[];
|
||||||
KOS_INIT_ROMDISK(romdisk);
|
KOS_INIT_ROMDISK(romdisk);
|
||||||
|
|
||||||
|
|
||||||
|
|
|
@ -2,9 +2,9 @@
|
||||||
#include <string.h>
|
#include <string.h>
|
||||||
#include <stdlib.h>
|
#include <stdlib.h>
|
||||||
|
|
||||||
#include "gl.h"
|
#include "GL/gl.h"
|
||||||
#include "glu.h"
|
#include "GL/glu.h"
|
||||||
#include "glkos.h"
|
#include "GL/glkos.h"
|
||||||
|
|
||||||
|
|
||||||
/* A general OpenGL initialization function. Sets all of the initial parameters. */
|
/* A general OpenGL initialization function. Sets all of the initial parameters. */
|
||||||
|
|
|
@ -2,9 +2,9 @@
|
||||||
#include <string.h>
|
#include <string.h>
|
||||||
#include <stdlib.h>
|
#include <stdlib.h>
|
||||||
|
|
||||||
#include "gl.h"
|
#include "GL/gl.h"
|
||||||
#include "glu.h"
|
#include "GL/glu.h"
|
||||||
#include "glkos.h"
|
#include "GL/glkos.h"
|
||||||
|
|
||||||
|
|
||||||
/* A general OpenGL initialization function. Sets all of the initial parameters. */
|
/* A general OpenGL initialization function. Sets all of the initial parameters. */
|
||||||
|
|
Loading…
Reference in New Issue
Block a user