Changeset 2277 for trunk/tutorial
- Timestamp:
- Jan 25, 2013, 4:48:37 PM (8 years ago)
- Location:
- trunk/tutorial
- Files:
-
- 6 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/tutorial/01_triangle.cpp
r2241 r2277 19 19 using namespace lol; 20 20 21 extern char const *lolfx_01_triangle;21 LOLFX_RESOURCE_DECLARE(01_triangle); 22 22 23 23 class Triangle : public WorldEntity … … 38 38 if (!m_ready) 39 39 { 40 m_shader = Shader::Create( lolfx_01_triangle);40 m_shader = Shader::Create(LOLFX_RESOURCE_NAME(01_triangle)); 41 41 m_coord = m_shader->GetAttribLocation("in_Position", VertexUsage::Position, 0); 42 42 -
trunk/tutorial/02_cube.cpp
r2241 r2277 19 19 using namespace lol; 20 20 21 extern char const *lolfx_02_cube;21 LOLFX_RESOURCE_DECLARE(02_cube); 22 22 23 23 class Cube : public WorldEntity … … 75 75 if (!m_ready) 76 76 { 77 m_shader = Shader::Create( lolfx_02_cube);77 m_shader = Shader::Create(LOLFX_RESOURCE_NAME(02_cube)); 78 78 79 79 m_mvp = m_shader->GetUniformLocation("in_Matrix"); -
trunk/tutorial/03_noise.cpp
r2241 r2277 19 19 using namespace lol; 20 20 21 extern char const *lolfx_03_noise;21 LOLFX_RESOURCE_DECLARE(03_noise); 22 22 23 23 class NoiseDemo : public WorldEntity … … 45 45 if (!m_ready) 46 46 { 47 m_shader = Shader::Create( lolfx_03_noise);47 m_shader = Shader::Create(LOLFX_RESOURCE_NAME(03_noise)); 48 48 m_coord = m_shader->GetAttribLocation("in_Position", VertexUsage::Position, 0); 49 49 m_time_uni = m_shader->GetUniformLocation("u_Time"); -
trunk/tutorial/04_texture.cpp
r2237 r2277 21 21 static int const TEXTURE_WIDTH = 256; 22 22 23 extern char const *lolfx_04_texture;23 LOLFX_RESOURCE_DECLARE(04_texture); 24 24 25 25 class TextureDemo : public WorldEntity … … 75 75 m_texture = new Texture(ivec2(TEXTURE_WIDTH, 1), PixelFormat::A8R8G8B8); 76 76 77 m_shader = Shader::Create( lolfx_04_texture);77 m_shader = Shader::Create(LOLFX_RESOURCE_NAME(04_texture)); 78 78 m_coord = m_shader->GetAttribLocation("in_Position", VertexUsage::Position, 0); 79 79 -
trunk/tutorial/08_fbo.cpp
r2241 r2277 19 19 using namespace lol; 20 20 21 extern char const *lolfx_08_fbo;21 LOLFX_RESOURCE_DECLARE(08_fbo); 22 22 23 23 class FBO : public WorldEntity … … 57 57 if (!m_ready) 58 58 { 59 m_shader = Shader::Create( lolfx_08_fbo);59 m_shader = Shader::Create(LOLFX_RESOURCE_NAME(08_fbo)); 60 60 m_coord = m_shader->GetAttribLocation("in_Position", VertexUsage::Position, 0); 61 61 m_uni_flag = m_shader->GetUniformLocation("in_Flag"); -
trunk/tutorial/11_fractal.cpp
r2241 r2277 21 21 using namespace lol; 22 22 23 extern char const *lolfx_11_fractal;23 LOLFX_RESOURCE_DECLARE(11_fractal); 24 24 25 25 class Fractal : public WorldEntity … … 449 449 m_texture->SetData(&m_pixels[0]); 450 450 451 m_shader = Shader::Create( lolfx_11_fractal);451 m_shader = Shader::Create(LOLFX_RESOURCE_NAME(11_fractal)); 452 452 453 453 m_vertexattrib = m_shader->GetAttribLocation("a_Vertex", VertexUsage::Position, 0);
Note: See TracChangeset
for help on using the changeset viewer.