Petr Schreiber
12-01-2007, 10:56
Hi all,
here is brief list of not yet documented improvements in TBGL shipping from thinBASIC 1.2.0.0.
Fixes:
* Problems on ATi Radeon X1600 resulting in hocus pocus quality of display lists solved
Improvements:
* Compatible with next generation of thinBASIC thinCore.DLL, which should result in faster parsing speed
* Up to 12% speed boost in tbgl_m15DrawModel
* Up to 15% speed boost in bone system operations
* Less memory requirements of model normal calculations
* Overall speed can be higher
New functions:
* tbgl_CreateWindowEx ( Caption, xResolution, yResolution, BitDepth, FullScreenFlag) - this allow to specify resolution even in windowed mode
* TBGL_m15RotBoneX Model, BoneID, angleX - for individual axis rotation in models
* TBGL_m15RotBoneY Model, BoneID, angleY
* TBGL_m15RotBoneZ Model, BoneID, angleZ
* TBGL_m15DefBoneLayer Model, BoneID, LayerName$, anchorX, anchorY, anchorZ - defines bone from layer
* TBGL_SetLightParameter light, parameter, a, b, c, d
flexible function, try to experiment with following equates in place of Parameter. Not used ( a,b,c,d ) parameters fill with just zeros:
%TBGL_LIGHT_AMBIENT - ambient color values in [0,1]
%TBGL_LIGHT_DIFFUSE - light color values in [0,1]
%TBGL_LIGHT_SPECULAR - specular values [0,1]
%TBGL_LIGHT_POSITION - position of light x,y,z,w
%TBGL_LIGHT_SPOT_DIRECTION - vector of spotlight
%TBGL_LIGHT_SPOT_EXPONENT - affects spotlight fade out
%TBGL_LIGHT_SPOT_CUTOFF - angle of spotlight "cone"
%TBGL_LIGHT_CONSTANT_ATTENUATION - this and following 2 equates makes light fading setup
%TBGL_LIGHT_LINEAR_ATTENUATION
%TBGL_LIGHT_QUADRATIC_ATTENUATION
* TBGL_UseAlphaTest Flag - use of alpha test on/off
* TBGL_AlphaFunc equate, factor - specifies alpha processing function
%TBGL_NEVER
%TBGL_LESS
%TBGL_EQUAL
%TBGL_LEQUAL
%TBGL_GREATER
%TBGL_NOTEQUAL
%TBGL_GEQUAL
%TBGL_ALWAYS
I'm sorry this is not in help file yet, but I will do it when possible.
Petr
here is brief list of not yet documented improvements in TBGL shipping from thinBASIC 1.2.0.0.
Fixes:
* Problems on ATi Radeon X1600 resulting in hocus pocus quality of display lists solved
Improvements:
* Compatible with next generation of thinBASIC thinCore.DLL, which should result in faster parsing speed
* Up to 12% speed boost in tbgl_m15DrawModel
* Up to 15% speed boost in bone system operations
* Less memory requirements of model normal calculations
* Overall speed can be higher
New functions:
* tbgl_CreateWindowEx ( Caption, xResolution, yResolution, BitDepth, FullScreenFlag) - this allow to specify resolution even in windowed mode
* TBGL_m15RotBoneX Model, BoneID, angleX - for individual axis rotation in models
* TBGL_m15RotBoneY Model, BoneID, angleY
* TBGL_m15RotBoneZ Model, BoneID, angleZ
* TBGL_m15DefBoneLayer Model, BoneID, LayerName$, anchorX, anchorY, anchorZ - defines bone from layer
* TBGL_SetLightParameter light, parameter, a, b, c, d
flexible function, try to experiment with following equates in place of Parameter. Not used ( a,b,c,d ) parameters fill with just zeros:
%TBGL_LIGHT_AMBIENT - ambient color values in [0,1]
%TBGL_LIGHT_DIFFUSE - light color values in [0,1]
%TBGL_LIGHT_SPECULAR - specular values [0,1]
%TBGL_LIGHT_POSITION - position of light x,y,z,w
%TBGL_LIGHT_SPOT_DIRECTION - vector of spotlight
%TBGL_LIGHT_SPOT_EXPONENT - affects spotlight fade out
%TBGL_LIGHT_SPOT_CUTOFF - angle of spotlight "cone"
%TBGL_LIGHT_CONSTANT_ATTENUATION - this and following 2 equates makes light fading setup
%TBGL_LIGHT_LINEAR_ATTENUATION
%TBGL_LIGHT_QUADRATIC_ATTENUATION
* TBGL_UseAlphaTest Flag - use of alpha test on/off
* TBGL_AlphaFunc equate, factor - specifies alpha processing function
%TBGL_NEVER
%TBGL_LESS
%TBGL_EQUAL
%TBGL_LEQUAL
%TBGL_GREATER
%TBGL_NOTEQUAL
%TBGL_GEQUAL
%TBGL_ALWAYS
I'm sorry this is not in help file yet, but I will do it when possible.
Petr