|
Aiv Fast2D
1.0.4
|
Public Member Functions | |
| void | SetDefaultViewportOrthographicSize (float value) |
| Set the default ortographic size to be used for all viewport (if not explicitly passed by SetViewport(int, int, int, int, float, bool) method. More... | |
| void | SetViewport (int x, int y, int width, int height, float orthoSize=0, bool virtualScreen=false) |
| Set the current viewport for this window More... | |
| void | SetZNearZFar (float near, float far) |
| void | EnableDepthTest () |
| void | DisableDepthTest () |
| void | CullFrontFaces () |
| void | CullBackFaces () |
| void | DisableCullFaces () |
| void | SetCurrent () |
| void | SetLogger (ILogger logger) |
| void | Log (string message) |
| void | SetCamera (Camera camera) |
| PostProcessingEffect | AddPostProcessingEffect (PostProcessingEffect effect) |
| void | ClearPostProcessingEffects () |
| PostProcessingEffect | SetPostProcessingEffect (int index, PostProcessingEffect effect) |
| void | SetClearColor (float r, float g, float b, float a=1) |
| void | SetClearColor (int r, int g, int b, int a=255) |
| void | SetClearColor (Vector4 color) |
| void | ClearColor () |
| void | SetScissorTest (bool enabled) |
| void | SetScissorTest (int x, int y, int width, int height) |
| void | SetScissorTest (float x, float y, float width, float height) |
| void | BindTextureToUnit (Texture texture, int unit) |
| void | ResetFrameBuffer () |
| void | RenderTo (RenderTexture renderTexture, bool clear=true, float orthoSize=0) |
| void | SetAlphaBlending () |
| void | SetMaskedBlending () |
| Window (string title, int depthSize=16, int antialiasingSamples=0, int stencilSize=0) | |
| Create a window using primary device width and height. More... | |
| Window (int width, int height, string title, bool fullScreen=false, int depthSize=16, int antialiasingSamples=0, int stencilSize=0) | |
| Create a window with a specific width and height More... | |
| bool | SetResolution (int screenWidth, int screenHeight) |
| Set resolution for this window. More... | |
| bool | SetResolution (Vector2 newResolution) |
| Set resolution for this window. More... | |
| void | SetVSync (bool enable) |
| Enable or Disable Vertical Sync More... | |
| void | SetIcon (string path) |
| Sets Window's Icon More... | |
| void | SetFullScreen (bool enable) |
| Change Full screen mode for this window More... | |
| void | SetSize (int width, int height) |
| Change size for the this window More... | |
| void | SetMouseVisible (bool enable) |
| Sets mouse cursor visibility More... | |
| void | SetTitle (string text) |
| Set the title for the window More... | |
| void | Update () |
| Present the rendered scene to the user, update events and delta time since last update. More... | |
| void | Close () |
| Close the window More... | |
| void | Exit (int code=0) |
| Close the window and kill the application More... | |
| bool | GetKey (KeyCode key) |
Returns true when key is pressed More... | |
| Vector2 | JoystickAxisLeftRaw (int index) |
| Vector2 | JoystickAxisRightRaw (int index) |
| Vector2 | JoystickAxisLeft (int index, float threshold=0.1f) |
| Vector2 | JoystickAxisRight (int index, float threshold=0.1f) |
| float | JoystickTriggerLeftRaw (int index) |
| float | JoystickTriggerRightRaw (int index) |
| float | JoystickTriggerLeft (int index, float threshold=0.1f) |
| float | JoystickTriggerRight (int index, float threshold=0.1f) |
| bool | JoystickShoulderLeft (int index) |
| bool | JoystickShoulderRight (int index) |
| bool | JoystickLeftStick (int index) |
| bool | JoystickRightStick (int index) |
| bool | JoystickUp (int index) |
| bool | JoystickDown (int index) |
| bool | JoystickRight (int index) |
| bool | JoystickLeft (int index) |
| void | JoystickVibrate (int index, float left, float right) |
| bool | JoystickA (int index) |
| bool | JoystickB (int index) |
| bool | JoystickX (int index) |
| bool | JoystickBack (int index) |
| bool | JoystickStart (int index) |
| bool | JoystickBigButton (int index) |
| bool | JoystickY (int index) |
| string | JoystickDebug (int index) |
Static Public Member Functions | |
| static void | SetCurrent (Window targetWindow) |
| static void | SetObsoleteMode () |
Public Attributes | |
| List< int > | textureGC = new List<int>() |
| List< int > | bufferGC = new List<int>() |
| List< int > | vaoGC = new List<int>() |
| List< int > | shaderGC = new List<int>() |
Protected Attributes | |
| float | zNear |
| float | zFar |
Properties | |
| Vector2 | CurrentViewportPosition [get, set] |
| Return the position of the last activated viewport by SetViewport(int, int, int, int, float, bool) method. More... | |
| Vector2 | CurrentViewportSize [get, set] |
| Return the size of the last activated viewport by SetViewport(int, int, int, int, float, bool) method. More... | |
| float | CurrentViewportOrthographicSize [get] |
| Return the orthographic size of the last activated viewport by SetViewport(int, int, int, int, float, bool) method. More... | |
| int | Width [get] |
Return the width of this Window More... | |
| int | Height [get] |
Return the height of this Window More... | |
| float | CurrentViewportAspectRatio [get] |
| Return the aspect ratio (width / height) of the last activated viewport by SetViewport(int, int, int, int, float, bool) method. More... | |
| int | ScaledWidth [get] |
| int | ScaledHeight [get] |
| float | OrthoWidth [get] |
| float | OrthoHeight [get] |
| string | Version [get] |
| string | Vendor [get] |
| string | SLVersion [get] |
| string | Renderer [get] |
| string | Extensions [get] |
| float | ZNear [get] |
| float | ZFar [get] |
| static Window | Current [get] |
| bool | IsOpened [get, set] |
| Check if the window is opened More... | |
| float | DeltaTime [get] |
| Time (in seconds) passed since the last Update() More... | |
| Camera | CurrentCamera [get] |
| Matrix4 | ProjectionMatrix [get, set] |
| static bool | IsObsolete [get] |
| PostProcessingEffect[] | PostProcessingEffects [get] |
| int | ActivePostProcessingEffectsCount [get] |
| static string[] | Displays [get] |
| Return the available displays for this computer. More... | |
| static Vector2[] | Resolutions [get] |
| Return the available resolutions for this computer. More... | |
| static string[] | Joysticks [get] |
| Return the available joysticks for this computer. More... | |
| GameWindow | Context [get, set] |
| Vector2 | Position [get, set] |
| Get / Set window position More... | |
| bool | HasFocus [get] |
| Check if this window has focus. More... | |
| float | MouseX [get] |
| Returns mouse X position relative to the window More... | |
| float | MouseY [get] |
| Returns mouse Y position relative to the window More... | |
| Vector2 | MousePosition [get] |
| Returns mouse position relative to the window as a vector2 More... | |
| float | RawMouseX [get] |
| float | RawMouseY [get] |
| Vector2 | RawMousePosition [get] |
| bool | MouseLeft [get] |
Returns true if mouse left button is pressed, otherwise false More... | |
| bool | MouseRight [get] |
Returns true if mouse right button is pressed, otherwise false More... | |
| bool | MouseMiddle [get] |
Returns true if mouse middle button is pressed, otherwise false More... | |
| float | MouseWheel [get] |
| Returns mouse wheel position More... | |
| bool | MouseButton1 [get] |
| bool | MouseButton2 [get] |
| bool | MouseButton3 [get] |
| bool | MouseButton4 [get] |
| bool | MouseButton5 [get] |
| bool | MouseButton6 [get] |
| bool | MouseButton7 [get] |
| bool | MouseButton8 [get] |
| bool | MouseButton9 [get] |
|
inline |
Create a window using primary device width and height.
| title | the title for this window |
| depthSize | number of bit for the depth buffer (e.g. 16bit, 32bit, 64bit). Default is 16 |
| antialiasingSamples | number of samples for antialiasing. Default is 0 |
| stencilSize | number of bit for the stencil buffer. Default is 0 |
|
inline |
Create a window with a specific width and height
| width | the width of the window |
| height | the height of the window |
| title | the title for this window |
| fullScreen | if window has to be in full screen mode. Default is false. |
| depthSize | number of bit for the depth buffer (e.g. 16bit, 32bit, 64bit). Default is 16 |
| antialiasingSamples | number of samples for antialiasing. Default is 0 |
| stencilSize | number of bit for the stencil buffer. Default is 0 |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
Close the window
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
Close the window and kill the application
| code | the exit code. Default is 0. |
|
inline |
Returns true when key is pressed
| key | key to check if a KeyCode is pressed |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inlinestatic |
|
inline |
|
inline |
Set the default ortographic size to be used for all viewport (if not explicitly passed by SetViewport(int, int, int, int, float, bool) method.
| value |
|
inline |
Change Full screen mode for this window
| enabled | true for full screen, false otherwise |
|
inline |
Sets Window's Icon
| path | path to the icon. Should be an .ico file. Path could be either a filesystem path or a resource path |
|
inline |
|
inline |
|
inline |
Sets mouse cursor visibility
| enabled | true to show mouse, false otherwise |
|
inlinestatic |
|
inline |
|
inline |
Set resolution for this window.
| screenWidth | |
| screenHeight |
|
inline |
Set resolution for this window.
| newResolution | a vector2 representing x = width and y = height |
|
inline |
|
inline |
|
inline |
|
inline |
Change size for the this window
| width | the new width of the window |
| height | the new height of the window |
|
inline |
Set the title for the window
|
inline |
Set the current viewport for this window
| x | x position of top-left corner where the viewport start |
| y | y position of top-left corner where the viewport start |
| width | the width of the viewport |
| height | the height of the viewport |
| orthoSize | the ortographic size of the viewport (default = 0) |
| virtualScreen | if this viewport is a virtual screen (default = false) |
|
inline |
Enable or Disable Vertical Sync
| enabled | true to enable VSync, false otherwise |
|
inline |
|
inline |
Present the rendered scene to the user, update events and delta time since last update.
| List<int> Aiv.Fast2D.Window.bufferGC = new List<int>() |
| List<int> Aiv.Fast2D.Window.shaderGC = new List<int>() |
| List<int> Aiv.Fast2D.Window.textureGC = new List<int>() |
| List<int> Aiv.Fast2D.Window.vaoGC = new List<int>() |
|
protected |
|
protected |
|
get |
|
getset |
|
staticget |
|
get |
|
get |
Return the aspect ratio (width / height) of the last activated viewport by SetViewport(int, int, int, int, float, bool) method.
|
get |
Return the orthographic size of the last activated viewport by SetViewport(int, int, int, int, float, bool) method.
|
getset |
Return the position of the last activated viewport by SetViewport(int, int, int, int, float, bool) method.
|
getset |
Return the size of the last activated viewport by SetViewport(int, int, int, int, float, bool) method.
|
get |
Time (in seconds) passed since the last Update()
|
staticget |
Return the available displays for this computer.
|
get |
|
get |
Check if this window has focus.
|
get |
Return the height of this Window
|
staticget |
|
getset |
Check if the window is opened
|
staticget |
Return the available joysticks for this computer.
|
get |
|
get |
|
get |
|
get |
|
get |
|
get |
|
get |
|
get |
|
get |
|
get |
Returns true if mouse left button is pressed, otherwise false
|
get |
Returns true if mouse middle button is pressed, otherwise false
|
get |
Returns mouse position relative to the window as a vector2
|
get |
Returns true if mouse right button is pressed, otherwise false
|
get |
Returns mouse wheel position
|
get |
Returns mouse X position relative to the window
|
get |
Returns mouse Y position relative to the window
|
get |
|
get |
|
getset |
Get / Set window position
|
get |
|
getset |
|
get |
|
get |
|
get |
|
get |
|
staticget |
Return the available resolutions for this computer.
|
get |
|
get |
|
get |
|
get |
|
get |
|
get |
Return the width of this Window
|
get |
|
get |
1.8.11