Gorilla.Context.Buffers.OpenGL
Unit Gorilla.Context.Buffers.OpenGL.pasClasses
- TOpenGLFBOTextureMap = class ( TFBOTextureMap )
- TOpenGLFrameBufferObject = class ( TFrameBufferObject )
- TOpenGLBufferObject = class ( TBufferObject )
TOpenGLFBOTextureMap
Ancestors
Members
TOpenGLFrameBufferObject
Ancestors
Members
Methods
- protected function Check
(
)
: Boolean
;
override;
Checks for errors inside of opengles.
- protected procedure DoCreateBuffer
(
)
;
override;
Builds the real opengles frame buffer in the GPU.
- protected procedure DoDestroyBuffer
(
)
;
override;
Destroys the real opengles frame buffer in GPU.
- public procedure Reset
(
)
;
override;
Unattaches all attached textures and clears texture map.
- public procedure CheckMaxAttachments
(
const
ATarget :
TRenderTarget
)
;
override;
Checks if your GPU supports the intended attachment buffer
- public procedure AttachTexture
(
const
AContext :
TContext3D; const
ATexture :
TTexture; const
ATarget :
TRenderTarget
)
;
override;
Attaches a specific texture at a specific target in the frame buffer.
- public procedure CreateRenderBuffer
(
AWidth :
Integer; AHeight :
Integer
)
;
override;
Creates a new render buffer and attaches it to the specific frame buffer object.
- public procedure DestroyRenderBuffer
(
)
;
override;
Destroys a created and attached render buffer from the specific frame buffer object.
- public procedure CreateDepthBuffer
(
AWidth :
Integer; AHeight :
Integer
)
;
override;
Creates a new depth buffer and links it with this frame buffer object.
- public procedure DestroyDepthBuffer
(
)
;
override;
Detaches and destroys the linked depth buffer.
- public procedure AttachDepthBuffer
(
ABufId :
Cardinal; ASize :
TPoint
)
;
override;
Attaches an existing depth buffer by its handle and size.
- public procedure Bind
(
AContext :
TContext3D
)
;
override;
Binding the framebuffer and returning the previously binded framebuffer.
- public procedure Unbind
(
AContext :
TContext3D
)
;
override;
Unbinding the framebuffer object to shader.
- public function RenderTargetToValue ( const ATarget : TRenderTarget ) : Cardinal ; class override;
- public procedure Resize ( AWidth : Integer; AHeight : Integer ) ; override;
- public procedure Prepare
(
const
ATargets :
TRenderTargets
)
;
override;
Prepare color render targets for rendering process. Depth and stencil buffer will automatically be filtered.
- public procedure Clear
(
const
ATargets :
TRenderTargets; const
AColor :
TAlphaColorF; const
ADepth :
Single; const
AStencil :
Cardinal; const
AForceDraw :
Boolean
=
False
)
;
overload override;
Clearing a number of render targets in framebuffer object.
TOpenGLBufferObject
Ancestors
Members
Methods
- public constructor Create ( const AUsage : TBufferUsage; const ATarget : TBufferBindingTarget ) ;
- public destructor Destroy ( ) ;
- public function Bind ( ) : NativeInt ; override;
- public procedure Unbind ( ) ; override;
- public procedure Push ( const AData : Pointer; const ASize : NativeInt ) ; override;
- public function SynchronizedMap ( const AMode : TBufferAccessMode ) : PPointer ; override;
- public procedure SynchronizedUnmap ( ) ; override;
- public procedure Clear ( ) ; override;
- public procedure LinkWithBindingPoint ( const ABindingPoint : Cardinal; const AErrorCheck : Boolean ) ; override;
- public procedure LinkWithShaderProgram ( const AProgram : TObject; const ABlockName : string; const AData : Pointer; const ASize : Cardinal; const AErrorCheck : Boolean ) ; override;