Skip to content

Instantly share code, notes, and snippets.

@FlyingJester
Last active August 29, 2015 14:04
Show Gist options
  • Select an option

  • Save FlyingJester/067068bb6cc358282324 to your computer and use it in GitHub Desktop.

Select an option

Save FlyingJester/067068bb6cc358282324 to your computer and use it in GitHub Desktop.
TurboSphere Sapphire Demo
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