|
|
@@ -20,7 +20,7 @@ using namespace lol; |
|
|
|
|
|
|
|
static int const TEXTURE_WIDTH = 256; |
|
|
|
|
|
|
|
extern char const *lolfx_04_texture; |
|
|
|
LOLFX_RESOURCE_DECLARE(04_texture); |
|
|
|
|
|
|
|
class TextureDemo : public WorldEntity |
|
|
|
{ |
|
|
@@ -74,7 +74,7 @@ public: |
|
|
|
{ |
|
|
|
m_texture = new Texture(ivec2(TEXTURE_WIDTH, 1), PixelFormat::A8R8G8B8); |
|
|
|
|
|
|
|
m_shader = Shader::Create(lolfx_04_texture); |
|
|
|
m_shader = Shader::Create(LOLFX_RESOURCE_NAME(04_texture)); |
|
|
|
m_coord = m_shader->GetAttribLocation("in_Position", VertexUsage::Position, 0); |
|
|
|
|
|
|
|
m_vdecl = new VertexDeclaration(VertexStream<vec2>(VertexUsage::Position)); |
|
|
|