ui
tkui
MFontResource
MFontResource.ui::FontResource
loadFont() : int
- Actually load the font resource. Implemented by derived classes.
onOpen()
- Called when OpenGL displaylists/textures need to be updated.
renderClippedString(String text, float x, y, clipLeft, clipTop, clipRight, clipBottom, int fgColor32)
- Render the given String to the current viewport.The render states should have been initialized prior to this call (enable texturing, disable z-test, set color etc..)The text is clipped to the rectangle (_x, _y, _clipX, _clipY).
renderString(String text, float x, y, int fgColor32)
- Render the given String to the current viewport.The render states should have been initialized prior to this call (enable texturing, disable z-test, set color etc..)
renderUnderlines(String text, float x, y)
- Render the underlines for the given String to the current viewport.The render states should have been initialized prior to this call (enable texturing, disable z-test, set color etc..)
setEnableMonochrome(int bEnabled)
- Select monochrome/antialiased font rendering
stringHeight(String text) : float
- Return the height (in pixels) of the given String
stringIndexAtPixelX(String text, float x) : int
- Return index of the char at pixel coordinate _x
stringWidth(String text) : float
- Return the width (in pixels) of the given StringMethod loadFont | |||||
Actually load the font resource. Implemented by derived classes. | |||||
Signature | |||||
| |||||
Returns | |||||
|
Method onOpen | |||
Called when OpenGL displaylists/textures need to be updated. | |||
Signature | |||
|
Method renderClippedString | |||||||||||||||||||||||||||||||||||||||||||||
Render the given String to the current viewport.The render states should have been initialized prior to this call (enable texturing, disable z-test, set color etc..)The text is clipped to the rectangle (_x, _y, _clipX, _clipY). | |||||||||||||||||||||||||||||||||||||||||||||
Signature | |||||||||||||||||||||||||||||||||||||||||||||
| |||||||||||||||||||||||||||||||||||||||||||||
Arguments | |||||||||||||||||||||||||||||||||||||||||||||
|
Method renderString | |||||||||||||||||||||||||
Render the given String to the current viewport.The render states should have been initialized prior to this call (enable texturing, disable z-test, set color etc..) | |||||||||||||||||||||||||
Signature | |||||||||||||||||||||||||
| |||||||||||||||||||||||||
Arguments | |||||||||||||||||||||||||
|
Method renderUnderlines | ||||||||||||||||||||
Render the underlines for the given String to the current viewport.The render states should have been initialized prior to this call (enable texturing, disable z-test, set color etc..) | ||||||||||||||||||||
Signature | ||||||||||||||||||||
| ||||||||||||||||||||
Arguments | ||||||||||||||||||||
|
Method setEnableMonochrome | |||||
Select monochrome/antialiased font rendering | |||||
Signature | |||||
| |||||
Arguments | |||||
|
Method stringHeight | ||||||||||
Return the height (in pixels) of the given String | ||||||||||
Signature | ||||||||||
| ||||||||||
Arguments | ||||||||||
| ||||||||||
Returns | ||||||||||
|
Method stringIndexAtPixelX | ||||||||||||||||||||
Return index of the char at pixel coordinate _x | ||||||||||||||||||||
Signature | ||||||||||||||||||||
| ||||||||||||||||||||
Arguments | ||||||||||||||||||||
| ||||||||||||||||||||
Returns | ||||||||||||||||||||
|
Method stringWidth | ||||||||||
Return the width (in pixels) of the given String | ||||||||||
Signature | ||||||||||
| ||||||||||
Arguments | ||||||||||
| ||||||||||
Returns | ||||||||||
|
auto-generated by "DOG", the TkScript document generator. Mon, 28/Dec/2015 14:27:06