Skip to content

Instantly share code, notes, and snippets.

@LavirtheWhiolet
Created January 24, 2012 13:27
Show Gist options
  • Save LavirtheWhiolet/1670169 to your computer and use it in GitHub Desktop.
Save LavirtheWhiolet/1670169 to your computer and use it in GitHub Desktop.
Game Developer Tools: Draft
TexturedPolygon2D:
(in development)
TexturedPolygon2D::Batch:
is: Singleton
Add(polygon:TexturedPolygon2D): void
# Draws this Batch using OpenGL and then clears it.
DrawAndClear(): void
# Remembers this Batch and replaces it with new one.
Push(): void
# Replaces this Batch with one remembered with last Push().
Pop(): void
Sound:
inherits: IDisposable
new(filename:String): Sound
# Starts playing this Sound from beginning.
Play(loop:Boolean = true): Void
# Stops playing this Sound.
Stop(): Void
# "Rewinds" this Sound to beginning.
Rewind(): Void
IsPlaying: Boolean
# Call this method as often as possible.
Update(): Void
Dispose(): Void # If the sound is playing then this method
# must stop it, too.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment