comparison examples/hello_triangle.nim @ 499:3f1111f3b9f8

did: tons of stuff, input, refactoring, fix some errors, some template improvment, sorry for super-commit
author Sam <sam@basx.dev>
date Wed, 18 Jan 2023 09:52:03 +0700
parents b41733878bc6
children e89fceb5a3a2
comparison
equal deleted inserted replaced
498:2fa8e418deae 499:3f1111f3b9f8
53 triangle.parts.add trianglemesh 53 triangle.parts.add trianglemesh
54 54
55 # upload data, prepare shaders, etc 55 # upload data, prepare shaders, etc
56 const vertexShader = generateVertexShaderCode[VertexDataA, void]() 56 const vertexShader = generateVertexShaderCode[VertexDataA, void]()
57 const fragmentShader = generateFragmentShaderCode[VertexDataA]() 57 const fragmentShader = generateFragmentShaderCode[VertexDataA]()
58 pipeline = setupPipeline[VertexDataA, void, uint16]( 58 pipeline = setupPipeline[VertexDataA, void, void](
59 myengine, 59 myengine,
60 triangle, 60 triangle,
61 vertexShader, 61 vertexShader,
62 fragmentShader 62 fragmentShader
63 ) 63 )