Dali 3D User Interface Engine
List of all members | Public Member Functions | Static Public Member Functions | Public Attributes | Private Member Functions | Private Attributes
Dali::TestNativeImage Class Reference

#include <test-native-image.h>

Inheritance diagram for Dali::TestNativeImage:
Inheritance graph
[legend]
Collaboration diagram for Dali::TestNativeImage:
Collaboration graph
[legend]

Public Member Functions

virtual bool GlExtensionCreate ()
 Forward declare future extension interface. More...
 
virtual void GlExtensionDestroy ()
 Destroy the GL resource for the NativeImage. More...
 
virtual GLenum TargetTexture ()
 Use the NativeImage as a texture for rendering. More...
 
virtual void PrepareTexture ()
 Called in each NativeTexture::Bind() call to allow implementation specific operations. More...
 
virtual unsigned int GetWidth () const
 Returns the width of the NativeImage. More...
 
virtual unsigned int GetHeight () const
 Returns the height of the NativeImage. More...
 
virtual bool RequiresBlending () const
 Query whether blending is required .0. More...
 
virtual
Dali::NativeImageInterface::Extension
GetExtension ()
 Retrieve the extension for the interface. More...
 
virtual bool GlExtensionCreate ()
 Forward declare future extension interface. More...
 
virtual void GlExtensionDestroy ()
 Destroy the GL resource for the NativeImage. More...
 
virtual GLenum TargetTexture ()
 Use the NativeImage as a texture for rendering. More...
 
virtual void PrepareTexture ()
 Called in each NativeTexture::Bind() call to allow implementation specific operations. More...
 
virtual unsigned int GetWidth () const
 Returns the width of the NativeImage. More...
 
virtual unsigned int GetHeight () const
 Returns the height of the NativeImage. More...
 
virtual bool RequiresBlending () const
 Query whether blending is required .0. More...
 
virtual bool GlExtensionCreate ()
 Forward declare future extension interface. More...
 
virtual void GlExtensionDestroy ()
 Destroy the GL resource for the NativeImage. More...
 
virtual GLenum TargetTexture ()
 Use the NativeImage as a texture for rendering. More...
 
virtual void PrepareTexture ()
 Called in each NativeTexture::Bind() call to allow implementation specific operations. More...
 
virtual unsigned int GetWidth () const
 Returns the width of the NativeImage. More...
 
virtual unsigned int GetHeight () const
 Returns the height of the NativeImage. More...
 
virtual bool RequiresBlending () const
 Query whether blending is required .0. More...
 
virtual
Dali::NativeImageInterface::Extension
GetExtension ()
 Retrieve the extension for the interface. More...
 

Static Public Member Functions

static TestNativeImagePointer New (int width, int height)
 
static TestNativeImagePointer New (int width, int height)
 
static TestNativeImagePointer New (int width, int height)
 

Public Attributes

int mExtensionCreateCalls
 
int mExtensionDestroyCalls
 
int mTargetTextureCalls
 
TestNativeImageExtensionmExtension
 

Private Member Functions

 TestNativeImage (int width, int height)
 
virtual ~TestNativeImage ()
 
 TestNativeImage (int width, int height)
 
virtual ~TestNativeImage ()
 
 TestNativeImage (int width, int height)
 
virtual ~TestNativeImage ()
 

Private Attributes

int mWidth
 
int mHeight
 

Additional Inherited Members

- Protected Member Functions inherited from Dali::NativeImageInterface
virtual ~NativeImageInterface ()
 A reference counted object may only be deleted by calling Unreference(). More...
 

Detailed Description

Definition at line 38 of file test-native-image.h.

Constructor & Destructor Documentation

Dali::TestNativeImage::TestNativeImage ( int  width,
int  height 
)
private

Definition at line 31 of file test-native-image.cpp.

References mExtension.

Referenced by New().

Here is the caller graph for this function:

Dali::TestNativeImage::~TestNativeImage ( )
privatevirtual

Definition at line 37 of file test-native-image.cpp.

Dali::TestNativeImage::TestNativeImage ( int  width,
int  height 
)
private
virtual Dali::TestNativeImage::~TestNativeImage ( )
privatevirtual
Dali::TestNativeImage::TestNativeImage ( int  width,
int  height 
)
private
virtual Dali::TestNativeImage::~TestNativeImage ( )
privatevirtual

Member Function Documentation

virtual Dali::NativeImageInterface::Extension* Dali::TestNativeImage::GetExtension ( )
inlinevirtual

Retrieve the extension for the interface.

.0

Returns
The extension if available, NULL otherwise

Reimplemented from Dali::NativeImageInterface.

Definition at line 50 of file test-native-image.h.

virtual Dali::NativeImageInterface::Extension* Dali::TestNativeImage::GetExtension ( )
inlinevirtual

Retrieve the extension for the interface.

.0

Returns
The extension if available, NULL otherwise

Reimplemented from Dali::NativeImageInterface.

Definition at line 50 of file test-native-image.h.

virtual unsigned int Dali::TestNativeImage::GetHeight ( ) const
inlinevirtual

Returns the height of the NativeImage.

.0

Returns
height

Implements Dali::NativeImageInterface.

Definition at line 39 of file test-native-image.h.

virtual unsigned int Dali::TestNativeImage::GetHeight ( ) const
inlinevirtual

Returns the height of the NativeImage.

.0

Returns
height

Implements Dali::NativeImageInterface.

Definition at line 48 of file test-native-image.h.

virtual unsigned int Dali::TestNativeImage::GetHeight ( ) const
inlinevirtual

Returns the height of the NativeImage.

.0

Returns
height

Implements Dali::NativeImageInterface.

Definition at line 48 of file test-native-image.h.

virtual unsigned int Dali::TestNativeImage::GetWidth ( ) const
inlinevirtual

Returns the width of the NativeImage.

.0

Returns
width

Implements Dali::NativeImageInterface.

Definition at line 38 of file test-native-image.h.

virtual unsigned int Dali::TestNativeImage::GetWidth ( ) const
inlinevirtual

Returns the width of the NativeImage.

.0

Returns
width

Implements Dali::NativeImageInterface.

Definition at line 47 of file test-native-image.h.

virtual unsigned int Dali::TestNativeImage::GetWidth ( ) const
inlinevirtual

Returns the width of the NativeImage.

.0

Returns
width

Implements Dali::NativeImageInterface.

Definition at line 47 of file test-native-image.h.

virtual bool Dali::TestNativeImage::GlExtensionCreate ( )
inlinevirtual

Forward declare future extension interface.

Create the GL resource for the NativeImage.

e.g. For the EglImageKHR extension, this corresponds to calling eglCreateImageKHR() .0

Returns
false If the initialization fails.
Precondition
There is a GL context for the current thread.

Implements Dali::NativeImageInterface.

Definition at line 34 of file test-native-image.h.

virtual bool Dali::TestNativeImage::GlExtensionCreate ( )
inlinevirtual

Forward declare future extension interface.

Create the GL resource for the NativeImage.

e.g. For the EglImageKHR extension, this corresponds to calling eglCreateImageKHR() .0

Returns
false If the initialization fails.
Precondition
There is a GL context for the current thread.

Implements Dali::NativeImageInterface.

Definition at line 43 of file test-native-image.h.

virtual bool Dali::TestNativeImage::GlExtensionCreate ( )
inlinevirtual

Forward declare future extension interface.

Create the GL resource for the NativeImage.

e.g. For the EglImageKHR extension, this corresponds to calling eglCreateImageKHR() .0

Returns
false If the initialization fails.
Precondition
There is a GL context for the current thread.

Implements Dali::NativeImageInterface.

Definition at line 43 of file test-native-image.h.

virtual void Dali::TestNativeImage::GlExtensionDestroy ( )
inlinevirtual

Destroy the GL resource for the NativeImage.

e.g. For the EglImageKHR extension, this corresponds to calling eglDestroyImageKHR() .0

Precondition
There is a GL context for the current thread.

Implements Dali::NativeImageInterface.

Definition at line 35 of file test-native-image.h.

virtual void Dali::TestNativeImage::GlExtensionDestroy ( )
inlinevirtual

Destroy the GL resource for the NativeImage.

e.g. For the EglImageKHR extension, this corresponds to calling eglDestroyImageKHR() .0

Precondition
There is a GL context for the current thread.

Implements Dali::NativeImageInterface.

Definition at line 44 of file test-native-image.h.

virtual void Dali::TestNativeImage::GlExtensionDestroy ( )
inlinevirtual

Destroy the GL resource for the NativeImage.

e.g. For the EglImageKHR extension, this corresponds to calling eglDestroyImageKHR() .0

Precondition
There is a GL context for the current thread.

Implements Dali::NativeImageInterface.

Definition at line 44 of file test-native-image.h.

static TestNativeImagePointer Dali::TestNativeImage::New ( int  width,
int  height 
)
static
TestNativeImagePointer Dali::TestNativeImage::New ( int  width,
int  height 
)
static
static TestNativeImagePointer Dali::TestNativeImage::New ( int  width,
int  height 
)
static
virtual void Dali::TestNativeImage::PrepareTexture ( )
inlinevirtual

Called in each NativeTexture::Bind() call to allow implementation specific operations.

The correct texture sampler has already been bound before the function gets called. .0

Precondition
glAbstraction is being used by context in current thread

Implements Dali::NativeImageInterface.

Definition at line 37 of file test-native-image.h.

virtual void Dali::TestNativeImage::PrepareTexture ( )
inlinevirtual

Called in each NativeTexture::Bind() call to allow implementation specific operations.

The correct texture sampler has already been bound before the function gets called. .0

Precondition
glAbstraction is being used by context in current thread

Implements Dali::NativeImageInterface.

Definition at line 46 of file test-native-image.h.

virtual void Dali::TestNativeImage::PrepareTexture ( )
inlinevirtual

Called in each NativeTexture::Bind() call to allow implementation specific operations.

The correct texture sampler has already been bound before the function gets called. .0

Precondition
glAbstraction is being used by context in current thread

Implements Dali::NativeImageInterface.

Definition at line 46 of file test-native-image.h.

virtual bool Dali::TestNativeImage::RequiresBlending ( ) const
inlinevirtual

Query whether blending is required .0.

Implements Dali::NativeImageInterface.

Definition at line 40 of file test-native-image.h.

virtual bool Dali::TestNativeImage::RequiresBlending ( ) const
inlinevirtual

Query whether blending is required .0.

Implements Dali::NativeImageInterface.

Definition at line 49 of file test-native-image.h.

virtual bool Dali::TestNativeImage::RequiresBlending ( ) const
inlinevirtual

Query whether blending is required .0.

Implements Dali::NativeImageInterface.

Definition at line 49 of file test-native-image.h.

virtual GLenum Dali::TestNativeImage::TargetTexture ( )
inlinevirtual

Use the NativeImage as a texture for rendering.

.0

Returns
A GL error code
Precondition
There is a GL context for the current thread.

Implements Dali::NativeImageInterface.

Definition at line 36 of file test-native-image.h.

virtual GLenum Dali::TestNativeImage::TargetTexture ( )
inlinevirtual

Use the NativeImage as a texture for rendering.

.0

Returns
A GL error code
Precondition
There is a GL context for the current thread.

Implements Dali::NativeImageInterface.

Definition at line 45 of file test-native-image.h.

virtual GLenum Dali::TestNativeImage::TargetTexture ( )
inlinevirtual

Use the NativeImage as a texture for rendering.

.0

Returns
A GL error code
Precondition
There is a GL context for the current thread.

Implements Dali::NativeImageInterface.

Definition at line 45 of file test-native-image.h.

Member Data Documentation

TestNativeImageExtension * Dali::TestNativeImage::mExtension

Definition at line 62 of file test-native-image.h.

Referenced by TestNativeImage().

int Dali::TestNativeImage::mExtensionCreateCalls

Definition at line 59 of file test-native-image.h.

int Dali::TestNativeImage::mExtensionDestroyCalls

Definition at line 60 of file test-native-image.h.

int Dali::TestNativeImage::mHeight
private

Definition at line 57 of file test-native-image.h.

int Dali::TestNativeImage::mTargetTextureCalls

Definition at line 61 of file test-native-image.h.

int Dali::TestNativeImage::mWidth
private

Definition at line 56 of file test-native-image.h.


The documentation for this class was generated from the following files:
Dali Docs Home
Read more about Dali