Last active
August 29, 2015 14:04
-
-
Save FlyingJester/067068bb6cc358282324 to your computer and use it in GitHub Desktop.
TurboSphere Sapphire Demo
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| var LogoImage = new Image("sphere.png"); | |
| var DefaultShader = GetDefaultShaderProgram(); | |
| var Vertices = [new Vertex(0, 0), new Vertex(64, 0), new Vertex(64, 64), new Vertex(0, 64)]; | |
| var Shapey = new Shape(Vertices, LogoImage); | |
| var Groupy = new Group(Shapey, DefaultShader); | |
| function game(){ | |
| while(!IsKeyPressed(KEY_Q)){ | |
| Groupy.Draw(); | |
| FlipScreen(); | |
| } | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment