DirectTrace  0.9
 All Classes Files Functions Variables Typedefs Enumerations Enumerator Macros Pages
DTTexture Class Reference

#include <DirectTraceAPI.h>

+ Inheritance diagram for DTTexture:
+ Collaboration diagram for DTTexture:

List of all members.

Public Member Functions

 DTTexture (DirectTraceAPI &api)
 ~DTTexture ()
void operator= (DTImage &source)
 This function copies an image to a texture object.
void MapToGLWindow ()
 This function maps a texture to an OpenGL window.
void SetFormat (GLint precision)
void Resize (int sizeX, int sizeY, int sizeZ, GLint nbComponents)
 This function resizes a texture.
void SetCLQueue (int queue)
 This function.
void SetSampler (unsigned int normalized_coords, unsigned int addressing_mode, unsigned int filter_mode)
 This function set a sampler the OpenCL samplers. Samplers can also be declared in OpenCL shaders.
- Public Member Functions inherited from DTHandle
void operator= (DTHandle &h)
DT_HANDLE GetHandle ()
void SetHandle (DT_HANDLE h)
DT_HANDLE_TYPE GetHandleType ()
void SetHandleType (DT_HANDLE_TYPE ht)
 DTHandle (DirectTraceAPI &api, DT_HANDLE_TYPE type)
 DTHandle (DTHandle *parent)
 DTHandle (DTHandle &parent)
 ~DTHandle ()

Additional Inherited Members

- Protected Attributes inherited from DTHandle
DT_HANDLE_TYPE htype
DT_HANDLE handle
DirectTraceAPIdtAPI
bool clone

Detailed Description

Definition at line 670 of file DirectTraceAPI.h.


Constructor & Destructor Documentation

DTTexture::DTTexture ( DirectTraceAPI api)

Definition at line 410 of file DirectTraceAPI.cpp.

DTTexture::~DTTexture ( )

Definition at line 412 of file DirectTraceAPI.cpp.


Member Function Documentation

void DTTexture::MapToGLWindow ( )

This function maps a texture to an OpenGL window.

)

Parameters:
@return

Use

Note

Compatibility

Supported by the OpenCL version of DirectTrace

See also:

Definition at line 414 of file DirectTraceAPI.cpp.

void DTTexture::operator= ( DTImage source)

This function copies an image to a texture object.

)

Parameters:
imageSource image.
Returns:

Use

Creating a texture object to be used with OpenCL shaders.

Note

Compatibility

Supported by the OpenCL version of DirectTrace

See also:
SetPrecision

Definition at line 413 of file DirectTraceAPI.cpp.

void DTTexture::Resize ( int  sizeX,
int  sizeY,
int  sizeZ,
GLint  nbComponents 
)

This function resizes a texture.

)

Parameters:
@return

Use

Note

Limited usage.

Compatibility

Supported by the OpenCL version of DirectTrace

See also:

Definition at line 416 of file DirectTraceAPI.cpp.

void DTTexture::SetCLQueue ( int  queue)

This function.

)

Parameters:
@return

Use

Computing Jobs/Shaders in parallel, or using multiple OpenCL devices.

Note

See the number of queues per OpenCL device.

Compatibility

Supported by the OpenCL version of DirectTrace

See also:

Definition at line 417 of file DirectTraceAPI.cpp.

void DTTexture::SetFormat ( GLint  precision)

Definition at line 415 of file DirectTraceAPI.cpp.

void DTTexture::SetSampler ( unsigned int  normalized_coords,
unsigned int  addressing_mode,
unsigned int  filter_mode 
)

This function set a sampler the OpenCL samplers. Samplers can also be declared in OpenCL shaders.

)

Parameters:
@return

Use

Note

Compatibility

Supported by XXX versions of DirectTrace

See also:

Definition at line 418 of file DirectTraceAPI.cpp.


The documentation for this class was generated from the following files: