shader boiler plate
This commit is contained in:
1 parent
b154776905
commit
71f51f41f2
3 files changed
+53
-4
No files matched your search
@@ -95,13 +95,13 @@ public class Game
|
||||
// Setup world
|
||||
World world = new World();
|
||||
|
||||
// Add stuff to world
|
||||
world.addEntity(new Entity("/obs/cube.obj", "/shaders/shader.fraq", "/shaders/shader.vert"));
|
||||
|
||||
// Do open gl stuff
|
||||
GL.createCapabilities();
|
||||
glClearColor(0.0f, 0.0f, 0.0f, 0.0f);
|
||||
|
||||
// Add stuff to world
|
||||
world.addEntity(new Entity("/obs/cube.obj", "/shaders/shader.fraq", "/shaders/shader.vert"));
|
||||
|
||||
// Main loop or something
|
||||
while ( !glfwWindowShouldClose(window) )
|
||||
{
|
||||
|
||||
Reference in new issue
Block a user