diff options
| author | jussi | 2024-11-21 18:02:06 +0200 |
|---|---|---|
| committer | jussi | 2024-11-21 18:02:06 +0200 |
| commit | d96e33bb1772c28f630de32e09201c0cdea6f896 (patch) | |
| tree | 6f17dcdf04c476b6a152d2b0aa3698c1fe0ab910 /examples/rlgl_hello_triangle/main.lua | |
| parent | 3d5eeac3d7e73a71cd476afed556e76fd9b5fe07 (diff) | |
| download | reilua-enhanced-d96e33bb1772c28f630de32e09201c0cdea6f896.tar.gz reilua-enhanced-d96e33bb1772c28f630de32e09201c0cdea6f896.tar.bz2 reilua-enhanced-d96e33bb1772c28f630de32e09201c0cdea6f896.zip | |
Updated examples to ReiLua 0.9.0.
Diffstat (limited to 'examples/rlgl_hello_triangle/main.lua')
| -rw-r--r-- | examples/rlgl_hello_triangle/main.lua | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/examples/rlgl_hello_triangle/main.lua b/examples/rlgl_hello_triangle/main.lua index 1a0baca..4d31930 100644 --- a/examples/rlgl_hello_triangle/main.lua +++ b/examples/rlgl_hello_triangle/main.lua @@ -7,7 +7,6 @@ local res = Vector2:new( 1024, 720 ) local winScale = 1 local winSize = res:scale( winScale ) local monitor = 0 -local null = RL.LoadBuffer( {}, RL.BUFFER_UNSIGNED_CHAR ); local triangle = { texture = { @@ -97,7 +96,7 @@ local function createTriangle() RL.BUFFER_FLOAT ) triangle.vbos.positions = RL.rlLoadVertexBuffer( vertexBuffer, false ) - RL.rlSetVertexAttribute( 0, 3, RL.RL_FLOAT, false, 0, null ) + RL.rlSetVertexAttribute( 0, 3, RL.RL_FLOAT, false, 0, 0 ) RL.rlEnableVertexAttribute( 0 ) -- Colors. @@ -110,7 +109,7 @@ local function createTriangle() RL.BUFFER_FLOAT ) triangle.vbos.colors = RL.rlLoadVertexBuffer( colors, false ) - RL.rlSetVertexAttribute( 1, 4, RL.RL_FLOAT, false, 0, null ) + RL.rlSetVertexAttribute( 1, 4, RL.RL_FLOAT, false, 0, 0 ) RL.rlEnableVertexAttribute( 1 ) -- Texcoords. @@ -123,7 +122,7 @@ local function createTriangle() RL.BUFFER_FLOAT ) triangle.vbos.texcoors = RL.rlLoadVertexBuffer( texcoors, false ) - RL.rlSetVertexAttribute( 2, 2, RL.RL_FLOAT, false, 0, null ) + RL.rlSetVertexAttribute( 2, 2, RL.RL_FLOAT, false, 0, 0 ) RL.rlEnableVertexAttribute( 2 ) -- Disable. |
