-upload the texture data to video card
+upload the texture data to video card
Parameters
+- aDataObj
+- texture data object that contains the actual data
- aTarget
- target o upload data to (e.g. GL_TEXTURE_2D)
- aBuildWithGlu
@@ -167,11 +90,11 @@ this method is called after constructor and initializes the object
|
-procedure GrabScreen(const aTop, aLeft, aRight, aBottom: Integer; const aFormat: TglBitmapFormat); |
+procedure GrabScreen(const aTop, aLeft, aRight, aBottom: Integer; const aFormat: TglBitmapFormat; const aDataObj: TglBitmapData); |
-copy a part of the frame buffer top the texture
+copy a part of the frame buffer to the texture
Parameters
- aTop
@@ -184,62 +107,25 @@ copy a part of the frame buffer top the texture
- bottommost pixel to copy
- aFormat
- format to store data in
+- aDataObj
+- texture data object to store the data in
|
|
-procedure GenTexture(const aTestTextureSize: Boolean = true); override; |
-
-
-
-generate texture (create texture object if not exist, set texture parameters and upload data)
-Parameters
-
-- aTestTextureSize
-- check the size of the texture and throw exception if something is wrong
-
- |
-
-
-
- |
-function FlipHorz: Boolean; override; |
-
-
-
-flip texture horizontally
-Returns
-True on success, False otherwise
|
-
-
-
- |
-function FlipVert: Boolean; override; |
-
-
-
-flip texture vertically
-Returns
-True on success, False otherwise
|
-
-
-
- |
-procedure GenerateNormalMap(const aFunc: TglBitmapNormalMapFunc = nm3x3; const aScale: Single = 2; const aUseAlpha: Boolean = false); |
+procedure UploadData(const aDataObj: TglBitmapData; const aCheckSize: Boolean = true); override; |
-create normal map from texture data
+upload texture data from given data object to video card
Parameters
-- aFunc
-- normal map function to generate normalmap with
-- aScale
-- scale of the normale stored in the normal map
-- aUseAlpha
-- generate normalmap from alpha channel data (if present)
+- aData
+- texture data object that contains the actual data
+- aCheckSize
+- check size before upload and throw exception if something is wrong
|
@@ -264,16 +150,6 @@ actual width of the texture
actual height of the texture
|