Added an asynchronous resource loading mechanism through App_GetResourcePath and App_ResourceLoaded. Added stb_image.h and used it to parse a .png file loaded from the server and upload it to app.testTexture. There is some ugliness around the edges images with transparency, probably caused by something pre-multiplied alpha related.
This commit is contained in:
@@ -443,6 +443,7 @@
|
||||
"void jsGlBindBuffer(GlEnum bufferType, GlId bufferId)",
|
||||
"void jsGlBindTexture(GlEnum target, GlId textureId)",
|
||||
"void jsGlBindVertexArray(GlId vaoId)",
|
||||
"void jsGlBlendEquation(GlEnum equation)",
|
||||
"void jsGlBlendFunc(GlEnum srcFactor, GlEnum dstFactor)",
|
||||
"void jsGlBlendFuncSeparate(GlEnum srcRGB, GlEnum dstRGB, GlEnum srcAlpha, GlEnum dstAlpha)",
|
||||
"void jsGlBufferData(GlEnum bufferType, u32 dataLength, const void* dataPntr, GlEnum usageHint)",
|
||||
@@ -462,6 +463,7 @@
|
||||
"void jsGlFrontFace(GlEnum cullMode)",
|
||||
"void jsGlGenerateMipmap(GlEnum target)",
|
||||
"void jsGlLinkProgram(GlId programId)",
|
||||
"void jsGlPixelStorei(GlEnum parameter, int value)",
|
||||
"void jsGlShaderSource(GlId shaderId, int sourceLength, const char* sourcePntr)",
|
||||
"void jsGlTexImage2D(GlEnum target, GlEnum level, GlEnum internalFormat, int width, int height, int border, GlEnum format, GlEnum type, int dataLength, const void* dataPntr)",
|
||||
"void jsGlTexParameteri(GlEnum target, GlEnum parameter, int value)",
|
||||
|
||||
Reference in New Issue
Block a user