SCOL/ZooSCOL.cpp: ***************** v4.6a2 050529: M3filter(): Multiple fixes (Full size filtering, misc. filters fixes). 050529: Surface2Bitmap(): Fixed a bug about the offset compute (32Bytes Surface data packs handling). 050626: M3filter(): Modified some filters again. Although this is not coherent regarding the language documentation, this brings the proper result regarding former implementations. Main problem is color implementation: bgr instead of rgb, mainly because this is how the ColorMap API handles colors and that this API is used multiple times in modules, like in C3D3... 050803: M3shiftTextureXY(): Removed verification of X & Y values so that they no more be compared to NIL (which is defined as -1). Values of -1 are thus now usable with this function. Note: using nil values in the function will produce same effect as -1 values. Note: There's no need to modify M3shiftTextureXYF() as this function uses OpenGL values (range 0.0 -> 1.0). And values like -1.0 thus represent unuseful 100% shifts. 050820: _BlendBitmap2Surface(): As _Bitmap2Surface, but a transparency factor is applied to the blitted bitmap. _BlendBitmap2Surface surface xs ys bitmap xb yb wb hb transparency_color transparency_factor 050821: _CRforcedSurface(): As _CRsurface but without control for _CRfullscreenSurface. 050821: _CRforcedFullscreenSurface(): As _CRfullscreenSurface but without control for _CRsurface. 050821: _BlendSurface2Surface(): As _Surface2Surface but a transparency factor is applied to the blitted surface. _BlendSurface2Surface surfaceD xd yd surfaceS xs ys ws hs transparency_color transparency_factor 050822: M3getTextureSize(): Returns the current size of the texture (potentially stretched, not necessarily the original bitmap size) M3getTextureSize session texture 050825: M3blitSurface2Texture(): Unfortunately, this function doesn't prove to bring some performance improvement compared to _Surface2Bitmap & M3blitTexture16. M3blitSurface2Texture session texture surface v4.6a2 050911: M3textureGetType(): Modified OpenGL filter: TF_NONE, TF_LINEAR, TF_BILINEAR, TF_TRILINEAR M3textureSetType(): Modified OpenGL filter. M3textureSetGeneralDefaultType(): Modified OpenGL filter. M3textureGetGeneralDefaultType(): M3textureGetGeneralDefaultType session 050912: M3isExtensionSupported(): M3isExtensionSupported[S] I Parameter: OpenGL extension Returns: 0 or 1 if extension is available. 050913: M3filter(): Counter increment for "O'n'" filter. cf ZooTexture.cpp 050917: M3blitTexture16() Fixed a bug about the offset compute (32Bytes Bitmap data packs handling). 050917: _BlendBitmap2Surface(): The function has been modified and now includes a new parameter which allow you to set a transparency factor (0->255) to the transparency color. Note that, as with many other Scol functions, the transparency color is in BGR format. _BlendBitmap2Surface surface xs ys bitmap xb yb wb hb transparency_color transparency_color_factor transparency_factor 050917: _BlendSurface2Surface(): The function has been modified and now includes a new parameter which allow you to set a transparency factor (0->255) to the transparency color. Note that, as with many other Scol functions, the transparency color is in BGR format. _BlendBitmap2Surface surface xs ys bitmap xb yb wb hb transparency_color transparency_color_factor transparency_factor 050924: _MX3renderEx() and all other rendering functions Modified for clickable Sprites. In case of clicked Sprite, returns H3d, HMat3d & Integer distance between camera and object (not z) 050924: M3setSpriteClickability() Sets the clickable property of a Sprite. flag = 0: Not clickable (Défault value) Other flag value: Clickable M3setSpriteClickability s3d h3d flag 050924: M3getSpriteClickability() Returns the current clickable property of a Sprite: 0 if not clickable, 1 if clickable M3getSpriteClickability s3d h3d Datas/ZooTexture.cpp: ********************* v4.6a1 050626: CreateModifiedImg(): Applying filters to textures 'A' filter: same modifications than M3filter v4.6a2 050912: SetTextureFilter(): Modified OpenGL filter: TF_NONE, TF_LINEAR, TF_BILINEAR, TF_TRILINEAR 050913: CreateModifiedImg(): Added "O'n'" filter, for OpenGL filter Note: This is not implemented in M3Filter(), although there is some counter increment if this code is encountered. 050915: BLG_SetTextureFilter() & BLG_SetupTexture() [Modifications in Datas/ZooTexture.h too] Compatibility between OpenGL filters and Scol filters. 050917: StretchImageModif() Slight optimization. Basic/ZooWorld.h: ***************** v4.6a2 050921: BLG_GetAmbientLight() declaration cf .cpp file below Basic/ZooWorld.cpp: ******************* v4.6a2 050921: BLG_GetAmbientLght() added (This is not a Scol function) 050921: RenderObjectPassTransp() Function has been modified to handle LT material simultaneous properties. This may require to fix existing T parameters to higher values. This works only for ambient lights. 050924: ZBLG_ObjSpr() & ~ZBLG_ObjSpr() Constructor & Destructor for ZBLG_ObjSpr class, used to allow Objects and Sprites detection (Only Objects were detected before that) BLG_TestSprObject() As TestObject(), but dedicated to Sprites detection SelectionTest() Function modified to allow Objects as well as Sprites detection. Note: For all these points, Basic/ZooWorld.h has been modified too. The ZBLG_ObjSpr class is described in this file. Basic/ZooScene.cpp: ******************* v4.6a2 050924: DisplayInfos() Modified for clickable Sprites 050924: Getinfo() Modified for clickable Sprites ZooScene.h modified too Scene Graph/ZooSprite.cpp: ************************** v4.6a2 050924: ZSprite class constructor modified to allow Sprites detection in 3D. ZooSprite.h (ZSprite class) has been modified accordingly.