Added some simple background textures from OpenGameArt.org and rendered them with a little parallax effect
This commit is contained in:
8
cwasm.c
8
cwasm.c
@@ -15,9 +15,7 @@ Description:
|
||||
#include "cwasm_matrices.c"
|
||||
#include "cwasm_arena.c"
|
||||
|
||||
#include "cwasm_webgl_js_imports.h"
|
||||
#include "cwasm_webgl_constants.h"
|
||||
|
||||
#if !CWASM_NO_STB_IMAGE
|
||||
#define STB_IMAGE_IMPLEMENTATION
|
||||
#define STBIDEF static
|
||||
#define STBI_NO_STDIO
|
||||
@@ -29,6 +27,10 @@ Description:
|
||||
#define STBI_ONLY_PNG
|
||||
#define STBI_NO_THREAD_LOCALS
|
||||
#include "stb_image.h"
|
||||
#endif
|
||||
|
||||
#include "cwasm_webgl_js_imports.h"
|
||||
#include "cwasm_webgl_constants.h"
|
||||
|
||||
void InitializeCWasm(u32 scratchArenasSize)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user