add notes explaining emscripten considerations
This commit is contained in:
parent
ce7240d423
commit
62866d33ae
@ -37,6 +37,8 @@ enum {
|
|||||||
TWN_UNSIGNED_BYTE,
|
TWN_UNSIGNED_BYTE,
|
||||||
};
|
};
|
||||||
|
|
||||||
|
/* note: they're separate as on some targets they are not interchangeable like in opengl */
|
||||||
|
/* emscripten legacy gl emulation, for example, assumes first bind to be decisive in its future usage */
|
||||||
|
|
||||||
typedef uint32_t VertexBuffer;
|
typedef uint32_t VertexBuffer;
|
||||||
typedef uint32_t IndexBuffer;
|
typedef uint32_t IndexBuffer;
|
||||||
|
@ -14,6 +14,10 @@
|
|||||||
#endif
|
#endif
|
||||||
#include <stb_ds.h>
|
#include <stb_ds.h>
|
||||||
|
|
||||||
|
/* note: care must be taken to always have interleaved VBOs with all data, */
|
||||||
|
/* as it is optimized in emscripten legacy gl emulation. */
|
||||||
|
/* constant color isn't supported there, so care must be given to provide alternative path with VBO as well. */
|
||||||
|
|
||||||
|
|
||||||
static TextureMode texture_mode_last_used = TEXTURE_MODE_UNKNOWN;
|
static TextureMode texture_mode_last_used = TEXTURE_MODE_UNKNOWN;
|
||||||
static Pipeline pipeline_last_used = PIPELINE_NO;
|
static Pipeline pipeline_last_used = PIPELINE_NO;
|
||||||
|
Loading…
Reference in New Issue
Block a user