Merge branch 'Samples_Make_Romdisk_Conditional' into 'master'
Include romdisk only if target is dreamcast See merge request simulant/GLdc!86
This commit is contained in:
commit
d7d8f4c4f1
|
@ -9,8 +9,11 @@
|
|||
|
||||
//$KOS_BASE/utils/texconv/texconv --in disk.png --format ARGB4444 --preview disk_preview.png --out disk.dtex
|
||||
|
||||
#ifdef __DREAMCAST__
|
||||
extern uint8_t romdisk[];
|
||||
KOS_INIT_ROMDISK(romdisk);
|
||||
#endif
|
||||
|
||||
texture t;
|
||||
int blendActive = -1;
|
||||
/* floats for x rotation, y rotation, z rotation */
|
||||
|
|
|
@ -11,10 +11,9 @@
|
|||
#include "GL/glext.h"
|
||||
#include "GL/glkos.h"
|
||||
|
||||
#ifdef __DREAMCAST__
|
||||
extern uint8_t romdisk[];
|
||||
KOS_INIT_ROMDISK(romdisk);
|
||||
|
||||
#ifdef __DREAMCAST__
|
||||
#define IMAGE_FILENAME "/rd/NeHe.bmp"
|
||||
#else
|
||||
#define IMAGE_FILENAME "samples/mipmap/romdisk/NeHe.bmp"
|
||||
|
|
|
@ -21,6 +21,8 @@
|
|||
#include "GL/glext.h"
|
||||
|
||||
#ifdef __DREAMCAST__
|
||||
extern uint8_t romdisk[];
|
||||
KOS_INIT_ROMDISK(romdisk);
|
||||
#define IMAGE1_FILENAME "/rd/wp001vq.pvr"
|
||||
#define IMAGE2_FILENAME "/rd/FlareWS_256.pvr"
|
||||
#else
|
||||
|
@ -122,9 +124,6 @@ void RenderCallback(GLuint texID0, GLuint texID1) {
|
|||
glDisableClientState(GL_VERTEX_ARRAY);
|
||||
}
|
||||
|
||||
extern uint8_t romdisk[];
|
||||
KOS_INIT_ROMDISK(romdisk);
|
||||
|
||||
int main(int argc, char **argv) {
|
||||
/* Notice we do not init the PVR here, that is handled by Open GL */
|
||||
glKosInit();
|
||||
|
|
|
@ -26,6 +26,11 @@
|
|||
blending.
|
||||
*/
|
||||
|
||||
#ifdef __DREAMCAST__
|
||||
extern uint8 romdisk[];
|
||||
KOS_INIT_ROMDISK(romdisk);
|
||||
#endif
|
||||
|
||||
static GLfloat xrot; /* X Rotation */
|
||||
static GLfloat yrot; /* Y Rotation */
|
||||
static GLfloat xspeed; /* X Rotation Speed */
|
||||
|
@ -115,11 +120,6 @@ void draw_gl(void) {
|
|||
yrot += yspeed;
|
||||
}
|
||||
|
||||
#ifdef __DREAMCAST__
|
||||
extern uint8 romdisk[];
|
||||
KOS_INIT_ROMDISK(romdisk);
|
||||
#endif
|
||||
|
||||
int main(int argc, char **argv) {
|
||||
#ifdef __DREAMCAST__
|
||||
maple_device_t *cont;
|
||||
|
|
|
@ -12,8 +12,10 @@
|
|||
#include "GL/glu.h"
|
||||
#include "GL/glkos.h"
|
||||
|
||||
#ifdef __DREAMCAST__
|
||||
extern uint8_t romdisk[];
|
||||
KOS_INIT_ROMDISK(romdisk);
|
||||
#endif
|
||||
|
||||
/* floats for x rotation, y rotation, z rotation */
|
||||
float xrot, yrot, zrot;
|
||||
|
|
Loading…
Reference in New Issue
Block a user