default
tksdl
tksdl
tksdl.Viewport
beginPaint()
- Begin painting
close()
- Close desktop or fullscreen window
endPaint()
- Flush GL commandlist and swap buffers
getDepth() : int
- Query color depth
getDesktopHeight() : int
- Query desktop height
getDesktopWidth() : int
- Query desktop width
getDoubleBuffer() : boolean
- Query whether a double buffered OpenGL surface shall be allocated
getEnableGLError() : boolean
- Query whether GL error reporting (see setEnableGLError()
) is currently enabled.
getFlags() : int
- Query openWindow() resp. openScreen() flags
getFrequency() : int
- Query monitor frequency
getHeight() : int
- Query window/screen height
getMultisampleBuffers() : int
- Query number of GL multisample buffers
getMultisampleSamples() : int
- Query number of GL multisample samples
getWidth() : int
- Query window/screen width
interruptScreenSaver()
- Try to interrupt the screensaver, usually by sending a synthetic event to the root/desktop window.
needRedraw()
- If the repaint strategy is REDRAW_DIRTY
, this will cause a display redraw.
openScreen(int w, h, z) : boolean
- Open fullscreen window
openWindow(int w, h) : boolean
- Open desktop window.
resizeWindow(int w, h) : boolean
- Resize desktop window
setCaption() : String
- Set window title
setDoubleBuffer(boolean bEnabled)
- Hint that a double buffered OpenGL surface shall be allocated
setEnableGLError(boolean bEnabled)
- Enable/disable GL error reporting (default=false).
setEnableRendering(boolean bEnabled)
- Mainly for debugging purposes / CPU load measurement
setFlags(int flags)
- Set flags for openWindow() resp. openScreen() call
setMultisampleBuffers(int num)
- Set number of GL multisample buffers.
setMultisampleSamples(int num)
- Set number of GL multisample samples
setScreenResolution(int w, h, z)
- Set fullscreen resolution and depth for next toggleFullScreen() call
setStencilBits(int num)
- Set number of stencil buffer bits
swapInterval(int interval)
- A wrapper for the wglSwapIntervalEXT() resp. glXSwapIntervalSGI() native functions
toggleFullScreen()
- Toggle fullscreen mode
waitVBlank()
- Wait for vertical retrace interrupt
Method beginPaint | |||
Begin painting | |||
Signature | |||
| |||
Description | |||
Set viewport cliprect. Reset texture and modelview matrices to identity. |
Method close | |||
Close desktop or fullscreen window | |||
Signature | |||
|
Method endPaint | |||
Flush GL commandlist and swap buffers | |||
Signature | |||
|
Method getDepth | |||||
Query color depth | |||||
Signature | |||||
| |||||
Returns | |||||
|
Method getDesktopHeight | |||||
Query desktop height | |||||
Signature | |||||
| |||||
Returns | |||||
|
Method getDesktopWidth | |||||
Query desktop width | |||||
Signature | |||||
| |||||
Returns | |||||
|
Method getDoubleBuffer | |||||
Query whether a double buffered OpenGL surface shall be allocated | |||||
Signature | |||||
| |||||
Returns | |||||
|
Method getEnableGLError | |||||
Query whether GL error reporting (see setEnableGLError() ) is currently enabled. | |||||
Signature | |||||
| |||||
Returns | |||||
|
Method getFlags | |||||
Query openWindow() resp. openScreen() flags | |||||
Signature | |||||
| |||||
Returns | |||||
|
Method getFrequency | |||||
Query monitor frequency | |||||
Signature | |||||
| |||||
Returns | |||||
|
Method getHeight | |||||
Query window/screen height | |||||
Signature | |||||
| |||||
Returns | |||||
|
Method getMultisampleBuffers | |||||
Query number of GL multisample buffers | |||||
Signature | |||||
| |||||
Returns | |||||
|
Method getMultisampleSamples | |||||
Query number of GL multisample samples | |||||
Signature | |||||
| |||||
Returns | |||||
|
Method getWidth | |||||
Query window/screen width | |||||
Signature | |||||
| |||||
Returns | |||||
|
Method interruptScreenSaver | |||
Try to interrupt the screensaver, usually by sending a synthetic event to the root/desktop window. | |||
Signature | |||
|
Method needRedraw | |||
If the repaint strategy is REDRAW_DIRTY , this will cause a display redraw. | |||
Signature | |||
|
Method openScreen | |||||||||||||||||||||||||
Open fullscreen window | |||||||||||||||||||||||||
Signature | |||||||||||||||||||||||||
| |||||||||||||||||||||||||
Arguments | |||||||||||||||||||||||||
| |||||||||||||||||||||||||
Returns | |||||||||||||||||||||||||
| |||||||||||||||||||||||||
Description | |||||||||||||||||||||||||
This is a wrapper for the SDL_InitSubSystem(), SDL_GetVideoInfo(), SDL_GL_SetAttribute() and SDL_SetVideoMode() native functions. |
Method openWindow | ||||||||||||||||||||
Open desktop window. | ||||||||||||||||||||
Signature | ||||||||||||||||||||
| ||||||||||||||||||||
Arguments | ||||||||||||||||||||
| ||||||||||||||||||||
Returns | ||||||||||||||||||||
| ||||||||||||||||||||
Description | ||||||||||||||||||||
This is a wrapper for the SDL_InitSubSystem(), SDL_GetVideoInfo(), SDL_GL_SetAttribute() and SDL_SetVideoMode() native functions. |
Method resizeWindow | ||||||||||||||||||||
Resize desktop window | ||||||||||||||||||||
Signature | ||||||||||||||||||||
| ||||||||||||||||||||
Arguments | ||||||||||||||||||||
| ||||||||||||||||||||
Returns | ||||||||||||||||||||
|
Method setDoubleBuffer | |||||
Hint that a double buffered OpenGL surface shall be allocated | |||||
Signature | |||||
| |||||
Arguments | |||||
| |||||
Description | |||||
This method should only be called prior to opening a window or screen. |
Method setEnableGLError | |||||
Enable/disable GL error reporting (default=false). | |||||
Signature | |||||
| |||||
Arguments | |||||
| |||||
Description | |||||
Please notice that with some GL drivers (noticably the latest Win32 GF 9800 GT driver on Vista/32bit), a simple call to glGetError() will take 16ms at a ~60 FPS refresh rate after ~60 frames / glFlush() / SwapBuffers() calls have been made. This didn't happen with older driver releases although there are internet discussions about this going back to 2006. FIX IT, NVIDIA!! GL error reporting can also be enabled using the TKSDL_GLERROR environment variable (0=disable, 1=enable). |
Method setEnableRendering | |||||
Mainly for debugging purposes / CPU load measurement | |||||
Signature | |||||
| |||||
Arguments | |||||
|
Method setFlags | |||||
Set flags for openWindow() resp. openScreen() call | |||||
Signature | |||||
| |||||
Arguments | |||||
| |||||
Description | |||||
This method should only be called prior to opening a window or screen. |
Method setMultisampleBuffers | |||||
Set number of GL multisample buffers. | |||||
Signature | |||||
| |||||
Arguments | |||||
| |||||
Description | |||||
This method should only be called prior to opening a window or screen. |
Method setMultisampleSamples | |||||
Set number of GL multisample samples | |||||
Signature | |||||
| |||||
Arguments | |||||
| |||||
Description | |||||
This method should only be called prior to opening a window or screen. |
Method setScreenResolution | ||||||||||||||||||||
Set fullscreen resolution and depth for next toggleFullScreen() call | ||||||||||||||||||||
Signature | ||||||||||||||||||||
| ||||||||||||||||||||
Arguments | ||||||||||||||||||||
|
Method setStencilBits | |||||
Set number of stencil buffer bits | |||||
Signature | |||||
| |||||
Arguments | |||||
| |||||
Description | |||||
This method should only be called prior to opening a window or screen. |
Method swapInterval | |||||
A wrapper for the wglSwapIntervalEXT() resp. glXSwapIntervalSGI() native functions | |||||
Signature | |||||
| |||||
Arguments | |||||
| |||||
Description | |||||
This function can effectively be used to disable or enable vertical blank synchronisation and it is, to my knowledge, the best way to achieve absolutely smooth vsync'd OpenGL graphics. In practice, the ATI/NVidia GL drivers act a bit different than how this GL extension was originally specified (different in a good sense). |
Method toggleFullScreen | |||
Toggle fullscreen mode | |||
Signature | |||
|
Method waitVBlank | |||
Deprecated: Not the optimal way to achieve absolutely smooth scrolling with OpenGL. Use swapInterval() () instead. | |||
Wait for vertical retrace interrupt | |||
Signature | |||
|
Project Modules: | tksdl |
Project Classes: | AudioDevice , AudioSample , Cursor , FPS , Joystick , Key , Mouse , SamplePlayer , SDL , Viewport |
Project Functions: | MIDINoteToFrequency |
All Namespaces: | default , ui |
All Projects: | core , debugtext , tkfreetype2 , tkmath , tkmidi , tkopengl , tkportaudio , tksdl , tkui , tkunit |
auto-generated by "DOG", the TkScript document generator. Mon, 28/Dec/2015 13:15:54