X-Git-Url: https://git.delphigl.com/?p=LazOpenGLCore.git;a=blobdiff_plain;f=doc%2FglBitmap.TglBitmapFormatDescriptor.html;fp=doc%2FglBitmap.TglBitmapFormatDescriptor.html;h=c9034187b5101500be3e6a4d1501b0a971d1a47d;hp=0000000000000000000000000000000000000000;hb=1f9d3b8b9ce7d5e05f7af88c7ab0fd094609d9e5;hpb=5a2eeb45d528c5a2406b2ae5d73a4c711b2ea7dc diff --git a/doc/glBitmap.TglBitmapFormatDescriptor.html b/doc/glBitmap.TglBitmapFormatDescriptor.html new file mode 100644 index 0000000..c903418 --- /dev/null +++ b/doc/glBitmap.TglBitmapFormatDescriptor.html @@ -0,0 +1,743 @@ + + + +glBitmap: Class TglBitmapFormatDescriptor + + + + + +
+

Class TglBitmapFormatDescriptor

+ + +
DescriptionHierarchyFieldsMethodsProperties
+

Unit

+ +

Declaration

+

+type TglBitmapFormatDescriptor = class(TObject)

+

Description

+

+describes the properties of a given texture data format

+

Hierarchy

+
  • TObject
  • +
  • TglBitmapFormatDescriptor

Overview

+

Fields

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
PrivatefBytesPerPixel: Single;
PrivatefChannelCount: Integer;
PrivatefMask: TglBitmapRec4ul;
PrivatefRange: TglBitmapRec4ui;
ProtectedfFormat: TglBitmapFormat;
ProtectedfWithAlpha: TglBitmapFormat;
ProtectedfWithoutAlpha: TglBitmapFormat;
ProtectedfOpenGLFormat: TglBitmapFormat;
ProtectedfRGBInverted: TglBitmapFormat;
ProtectedfUncompressed: TglBitmapFormat;
ProtectedfBitsPerPixel: Integer;
ProtectedfIsCompressed: Boolean;
ProtectedfPrecision: TglBitmapRec4ub;
ProtectedfShift: TglBitmapRec4ub;
ProtectedfglFormat: GLenum;
ProtectedfglInternalFormat: GLenum;
ProtectedfglDataFormat: GLenum;
+

Methods

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
Privatefunction GetHasRed: Boolean;
Privatefunction GetHasGreen: Boolean;
Privatefunction GetHasBlue: Boolean;
Privatefunction GetHasAlpha: Boolean;
Privatefunction GetHasColor: Boolean;
Privatefunction GetIsGrayscale: Boolean;
Protectedprocedure SetValues; virtual;
Protectedprocedure CalcValues;
Publicconstructor Create;
Publicclass function GetByFormat(const aInternalFormat: GLenum): TglBitmapFormatDescriptor;
+

Properties

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
Publicproperty Format: TglBitmapFormat read fFormat;
Publicproperty ChannelCount: Integer read fChannelCount;
Publicproperty IsCompressed: Boolean read fIsCompressed;
Publicproperty BitsPerPixel: Integer read fBitsPerPixel;
Publicproperty BytesPerPixel: Single read fBytesPerPixel;
Publicproperty Precision: TglBitmapRec4ub read fPrecision;
Publicproperty Shift: TglBitmapRec4ub read fShift;
Publicproperty Range: TglBitmapRec4ui read fRange;
Publicproperty Mask: TglBitmapRec4ul read fMask;
Publicproperty RGBInverted: TglBitmapFormat read fRGBInverted;
Publicproperty WithAlpha: TglBitmapFormat read fWithAlpha;
Publicproperty WithoutAlpha: TglBitmapFormat read fWithAlpha;
Publicproperty OpenGLFormat: TglBitmapFormat read fOpenGLFormat;
Publicproperty Uncompressed: TglBitmapFormat read fUncompressed;
Publicproperty glFormat: GLenum read fglFormat;
Publicproperty glInternalFormat: GLenum read fglInternalFormat;
Publicproperty glDataFormat: GLenum read fglDataFormat;
Publicproperty HasRed: Boolean read GetHasRed;
Publicproperty HasGreen: Boolean read GetHasGreen;
Publicproperty HasBlue: Boolean read GetHasBlue;
Publicproperty HasAlpha: Boolean read GetHasAlpha;
Publicproperty HasColor: Boolean read GetHasColor;
Publicproperty IsGrayscale: Boolean read GetIsGrayscale;
+

Description

+

Fields

+ + + + + + +
PrivatefBytesPerPixel: Single;
+

+number of bytes for each pixel

+
+ + + + + + +
PrivatefChannelCount: Integer;
+

+number of color channels

+
+ + + + + + +
PrivatefMask: TglBitmapRec4ul;
+

+bitmask for each color channel

+
+ + + + + + +
PrivatefRange: TglBitmapRec4ui;
+

+maximal value of each color channel

+
+ + + + + + +
ProtectedfFormat: TglBitmapFormat;
+

+format this descriptor belongs to

+
+ + + + + + +
ProtectedfWithAlpha: TglBitmapFormat;
+

+suitable format with alpha channel

+
+ + + + + + +
ProtectedfWithoutAlpha: TglBitmapFormat;
+

+suitable format without alpha channel

+
+ + + + + + +
ProtectedfOpenGLFormat: TglBitmapFormat;
+

+suitable format that is supported by OpenGL

+
+ + + + + + +
ProtectedfRGBInverted: TglBitmapFormat;
+

+suitable format with inverted RGB channels

+
+ + + + + + +
ProtectedfUncompressed: TglBitmapFormat;
+

+suitable format with uncompressed data

+
+ + + + + + +
ProtectedfBitsPerPixel: Integer;
+

+number of bits per pixel

+
+ + + + + + +
ProtectedfIsCompressed: Boolean;
+

+True if the format is compressed, False otherwise

+
+ + + + + + +
ProtectedfPrecision: TglBitmapRec4ub;
+

+number of bits for each color channel

+
+ + + + + + +
ProtectedfShift: TglBitmapRec4ub;
+

+bit offset for each color channel

+
+ + + + + + +
ProtectedfglFormat: GLenum;
+

+OpenGL format enum (e.g. GL_RGB)

+
+ + + + + + +
ProtectedfglInternalFormat: GLenum;
+

+OpenGL internal format enum (e.g. GL_RGB8)

+
+ + + + + + +
ProtectedfglDataFormat: GLenum;
+

+OpenGL data format enum (e.g. GL_UNSIGNED_BYTE)

+
+

Methods

+ + + + + + +
Privatefunction GetHasRed: Boolean;
Returns
+

True if the format has a red color channel, False otherwise

+ + + + + + +
Privatefunction GetHasGreen: Boolean;
Returns
+

True if the format has a green color channel, False otherwise

+ + + + + + +
Privatefunction GetHasBlue: Boolean;
Returns
+

True if the format has a blue color channel, False otherwise

+ + + + + + +
Privatefunction GetHasAlpha: Boolean;
Returns
+

True if the format has a alpha color channel, False otherwise

+ + + + + + +
Privatefunction GetHasColor: Boolean;
Returns
+

True if the format has any color color channel, False otherwise

+ + + + + + +
Privatefunction GetIsGrayscale: Boolean;
Returns
+

True if the format is a grayscale format, False otherwise

+ + + + + + +
Protectedprocedure SetValues; virtual;
+

+set values for this format descriptor

+
+ + + + + + +
Protectedprocedure CalcValues;
+

+calculate cached values

+
+ + + + + + +
Publicconstructor Create;
+

+constructor

+
+ + + + + + +
Publicclass function GetByFormat(const aInternalFormat: GLenum): TglBitmapFormatDescriptor;
+

+get the format descriptor by a given OpenGL internal format

+
Parameters
+
+
aInternalFormat
+
OpenGL internal format to get format descriptor for
+
+
Returns
+

suitable format descriptor or tfEmpty-Descriptor

+

Properties

+ + + + + + +
Publicproperty Format: TglBitmapFormat read fFormat;
+

+format this descriptor belongs to

+
+ + + + + + +
Publicproperty ChannelCount: Integer read fChannelCount;
+

+number of color channels

+
+ + + + + + +
Publicproperty IsCompressed: Boolean read fIsCompressed;
+

+True if the format is compressed, False otherwise

+
+ + + + + + +
Publicproperty BitsPerPixel: Integer read fBitsPerPixel;
+

+number of bytes per pixel

+
+ + + + + + +
Publicproperty BytesPerPixel: Single read fBytesPerPixel;
+

+number of bits per pixel

+
+ + + + + + +
Publicproperty Precision: TglBitmapRec4ub read fPrecision;
+

+number of bits for each color channel

+
+ + + + + + +
Publicproperty Shift: TglBitmapRec4ub read fShift;
+

+bit offset for each color channel

+
+ + + + + + +
Publicproperty Range: TglBitmapRec4ui read fRange;
+

+maximal value of each color channel

+
+ + + + + + +
Publicproperty Mask: TglBitmapRec4ul read fMask;
+

+bitmask for each color channel

+
+ + + + + + +
Publicproperty RGBInverted: TglBitmapFormat read fRGBInverted;
+

+suitable format with inverted RGB channels

+
+ + + + + + +
Publicproperty WithAlpha: TglBitmapFormat read fWithAlpha;
+

+suitable format with alpha channel

+
+ + + + + + +
Publicproperty WithoutAlpha: TglBitmapFormat read fWithAlpha;
+

+suitable format without alpha channel

+
+ + + + + + +
Publicproperty OpenGLFormat: TglBitmapFormat read fOpenGLFormat;
+

+suitable format that is supported by OpenGL

+
+ + + + + + +
Publicproperty Uncompressed: TglBitmapFormat read fUncompressed;
+

+suitable format with uncompressed data

+
+ + + + + + +
Publicproperty glFormat: GLenum read fglFormat;
+

+OpenGL format enum (e.g. GL_RGB)

+
+ + + + + + +
Publicproperty glInternalFormat: GLenum read fglInternalFormat;
+

+OpenGL internal format enum (e.g. GL_RGB8)

+
+ + + + + + +
Publicproperty glDataFormat: GLenum read fglDataFormat;
+

+OpenGL data format enum (e.g. GL_UNSIGNED_BYTE)

+
+ + + + + + +
Publicproperty HasRed: Boolean read GetHasRed;
+

+True if the format has a red color channel, False otherwise

+
+ + + + + + +
Publicproperty HasGreen: Boolean read GetHasGreen;
+

+True if the format has a green color channel, False otherwise

+
+ + + + + + +
Publicproperty HasBlue: Boolean read GetHasBlue;
+

+True if the format has a blue color channel, False otherwise

+
+ + + + + + +
Publicproperty HasAlpha: Boolean read GetHasAlpha;
+

+True if the format has a alpha color channel, False otherwise

+
+ + + + + + +
Publicproperty HasColor: Boolean read GetHasColor;
+

+True if the format has any color color channel, False otherwise

+
+ + + + + + +
Publicproperty IsGrayscale: Boolean read GetIsGrayscale;
+

+True if the format is a grayscale format, False otherwise

+
+
Generated by PasDoc 0.13.0 on 2014-12-21 15:05:48 + +