Mercurial > games > semicongine
comparison examples/hello_triangle.nim @ 38:c3c963e7c1a6
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 | 7f99b21a8777 |
children | 2771db8d4276 |
comparison
equal
deleted
inserted
replaced
37:6859bcfabc62 | 38:c3c963e7c1a6 |
---|---|
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 ) |