mirror of
https://gitlab.com/shinovon/re3-symbian.git
synced 2026-05-23 01:57:21 +03:00
Symbian^3 port
This commit is contained in:
parent
77cdaaf97e
commit
3eb71f2cc5
106 changed files with 2098 additions and 745 deletions
17
vendor/librw/src/gl/rwgl3.h
vendored
17
vendor/librw/src/gl/rwgl3.h
vendored
|
|
@ -1,4 +1,14 @@
|
|||
#ifdef RW_GL3
|
||||
#ifdef __SYMBIAN32__
|
||||
#include <gles2/gl2.h>
|
||||
#include <gles2/gl2ext.h>
|
||||
#include <egl/egl.h>
|
||||
|
||||
#define GL_COMPRESSED_RGB_S3TC_DXT1_EXT 0x83F0
|
||||
#define GL_COMPRESSED_RGBA_S3TC_DXT1_EXT 0x83F1
|
||||
#define GL_COMPRESSED_RGBA_S3TC_DXT3_EXT 0x83F2
|
||||
#define GL_COMPRESSED_RGBA_S3TC_DXT5_EXT 0x83F3
|
||||
#else
|
||||
#include "glad/glad.h"
|
||||
#ifdef LIBRW_SDL2
|
||||
#include <SDL.h>
|
||||
|
|
@ -6,6 +16,7 @@
|
|||
#include <GLFW/glfw3.h>
|
||||
#endif
|
||||
#endif
|
||||
#endif
|
||||
|
||||
namespace rw {
|
||||
|
||||
|
|
@ -15,7 +26,7 @@ struct EngineOpenParams
|
|||
#ifdef LIBRW_SDL2
|
||||
SDL_Window **window;
|
||||
bool32 fullscreen;
|
||||
#else
|
||||
#elif !defined(__SYMBIAN32__)
|
||||
GLFWwindow **window;
|
||||
#endif
|
||||
int width, height;
|
||||
|
|
@ -49,12 +60,14 @@ enum AttribIndices
|
|||
ATTRIB_INDICES,
|
||||
ATTRIB_TEXCOORDS0,
|
||||
ATTRIB_TEXCOORDS1,
|
||||
#if 0
|
||||
ATTRIB_TEXCOORDS2,
|
||||
ATTRIB_TEXCOORDS3,
|
||||
ATTRIB_TEXCOORDS4,
|
||||
ATTRIB_TEXCOORDS5,
|
||||
ATTRIB_TEXCOORDS6,
|
||||
ATTRIB_TEXCOORDS7,
|
||||
#endif
|
||||
};
|
||||
|
||||
// default uniform indices
|
||||
|
|
@ -98,7 +111,7 @@ struct InstanceDataHeader : rw::InstanceDataHeader
|
|||
struct Shader;
|
||||
|
||||
extern Shader *defaultShader, *defaultShader_noAT;
|
||||
extern Shader *defaultShader_fullLight, *defaultShader_fullLight_noAT;
|
||||
//extern Shader *defaultShader_fullLight, *defaultShader_fullLight_noAT;
|
||||
|
||||
struct Im3DVertex
|
||||
{
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue