Module AS
In: documentation.rb
lib/as_main.rb

Main module for Aerosol

Methods

Classes and Modules

Module AS::Color
Module AS::Event
Module AS::Scene
Class AS::Canvas
Class AS::DisplayList
Class AS::FPSCounter
Class AS::Gamestate
Class AS::GeometryBuffer
Class AS::InputPad
Class AS::MIPTexture
Class AS::Menu
Class AS::Music
Class AS::Osc
Class AS::PackedColor
Class AS::PackedMatrix
Class AS::ParticleEmitter
Class AS::RectTexture
Class AS::Sound
Class AS::SoundPlayer
Class AS::Texture
Class AS::TickCounter
Class AS::TickTimer
Class AS::Transform2D
Class AS::WavFile

Constants

Joysticks = nil   List of attached joysticks as AS::Joysticks.
Resolutions = nil   List of all available fullscreen resolutions. Entries are a two element Array. _[w,h]_

Public Class methods

Clear the screen

Create a gamma table that simulates a display with a lower bpp. See also AS#set_gamma.

Create a basic gamma table. See also AS#set_gamma.

Should be called before exiting Aerosol. (normally called automatically)

Grab exclusive use of the mouse input.

Load an image file. Accepts either PNG or JPEG files. PNG files are loaded with pre-multiplied alpha.

Open a screen. Can be called more than once, but each call will completely reset OpenGL. Opts include :vbl_sync => bool, :fullscreen => bool, :depth => bits, :stencil => bits.

Print out all OpenGL errors since the last call.

Current screen height

Current screen width

Set the mouse visibility.

Swap the OpenGL buffers. (draw the screen)

[Validate]