Created
January 24, 2012 13:27
-
-
Save LavirtheWhiolet/1670169 to your computer and use it in GitHub Desktop.
Game Developer Tools: Draft
This file contains 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
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