Download Manual - Tcl3D

Transcript
4 Modules in detail
Implementation files:
Header files:
Wrapper files:
Tcl3D: Doing 3D with Tcl
tcl3dSDLQuery.tcl, tcl3dSDLUtil.tcl
All files in subdirectory include
sdl.i
The wrapping for this module is based on the unmodified SDL header files.
SDL utility module
Tcl3D command
Description
tcl3dSDLGetVersion
tcl3dSDLGetFocusName
tcl3dSDLGetButtonName
tcl3dSDLGetHatName
Get the version of the wrapped SDL library.
Convert a SDL focus state bitfield into a string representation.
Convert a SDL button state bitfield into a string representation.
Convert SDL hat related enumerations into a string
representation.
tcl3dSDLGetEventName
Convert SDL event related enumerations into a string
representation.
tcl3dSDLFrames2MSF
Convert CD frames into minutes/seconds/frames.
tcl3dSDLGetTrackTypeName Convert SDL CD track type enumerations into a string
representation.
tcl3dSDLGetCdStatusName
Convert SDL CD status enumerations into a string
representation.
Table 4.20: tcl3dSDL utility commands
See the demo programs contained in directory LibrarySpecificDemos/tcl3dSDL for examples,
on how to use the SDL functions.
4.6 tcl3dFTGL: Wrapper for the OpenGL Font Rendering Library
This module wraps the FTGL [9] library based on version 2.1.3 RC5 and adds some FTGL
related utility procedures.
The FTGL library depends on the Freetype2 library [10].
This is an optional module.
Requirements for this module: The FTGL and Freetype2 library and header files.
Libraries and header files are included in the Tcl3D distribution.
The master SWIG file for wrapping the OpenGL Font Rendering library is tcl3dFTGL.i.
Implementation files:
Header files:
Wrapper files:
tcl3dFTGLQuery.tcl, tcl3dFTGLUtil.tcl
All files in subdirectory include
ftgl.i
The wrapping for this module is based on the unmodified FTGL header files.
FTGL utility module
Tcl3D command
Description
tcl3dFTGLGetVersion
tcl3dFTGLGetBBox
Get the version of the wrapped FTGL library.
Get bounding box of a string.
Table 4.21: tcl3dFTGL utility commands
Tcl3D User Manual
Version 0.5.0, December 2010
Copyright © 2005-2010 by Paul Obermeier. All rights reserved.
Page 51 of 74