Main Page | Namespace List | Class Hierarchy | Class List | Directories | File List | Namespace Members | Class Members | File Members

# Keos::COGLTexture Class Reference

Specialization OpenGL of textures. More...

`#include <KeosOGLTexture.h>`

Inheritance diagram for Keos::COGLTexture:

List of all members.

## Public Member Functions

| COGLTexture (const TVector2I &Size, TPixelFormat Format, bool bHasMipmaps, bool bAutoMipmaps, uint nTexture)
| Constructor.
| ~COGLTexture ()
| Destructor.
uint | GetOGLTexture () const
| Return OGL texture ID.

## Private Member Functions

virtual void | Update (const CRectangle &Rect)
| Update the pixels of the texture.

## Private Attributes

uint | m_nTexture
| OGL texture ID.

## Detailed Description

Specialization OpenGL of textures.

Definition at line 33 of file KeosOGLTexture.h.

## Constructor & Destructor Documentation

Keos::COGLTexture::COGLTexture | ( | const TVector2I & | Size,
|  | TPixelFormat | Format,
|  | bool | bHasMipmaps,
|  | bool | bAutoMipmaps,
|  | uint | nTexture
| ) |

| Constructor.

Parameters:

  | Size | Texture size.
  | Format | Format of pixels of the texture.
  | bHasMipmaps | Indicate if the texture has levels of mipmaps.
  | bAutoMipmaps | Indicate if the texture can generate its mips in HW.
  | nTexture | OGL texture ID.

Definition at line 34 of file KeosOGLTexture.cpp.

Keos::COGLTexture::~COGLTexture | ( |  | ) |

| Destructor. Definition at line 42 of file KeosOGLTexture.cpp. References m_nTexture.

## Member Function Documentation

uint Keos::COGLTexture::GetOGLTexture | ( |  | ) | const

| Return OGL texture ID. Definition at line 49 of file KeosOGLTexture.cpp. References m_nTexture. Referenced by Keos::COGLRenderSystem::SetTexture().

void Keos::COGLTexture::Update | ( | const CRectangle & | Rect | ) | `[private, virtual]`

| Update the pixels of the texture.

Parameters:

  | Rect | Rectangle to update in the texture.

Implements Keos::ITextureBase.

Definition at line 55 of file KeosOGLTexture.cpp.

References Assert, Keos::COGLEnum::TPixelFmt::Format, Keos::FormatCompressed(), Keos::GetBytesPerPixel(), Keos::CImage::GetData(), Keos::CImage::GetFormat(), Keos::INT_IN, Keos::COGLEnum::TPixelFmt::Internal, m_nTexture, Keos::CImage::SubImage(), Keos::COGLEnum::TPixelFmt::Type, Keos::CVector2< T >::x, and Keos::CVector2< T >::y.

## Member Data Documentation

uint Keos::COGLTexture::m_nTexture`[private]`

| OGL texture ID. Definition at line 62 of file KeosOGLTexture.h. Referenced by GetOGLTexture(), Update(), and ~COGLTexture().

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

- RenderSystems/OpenGL/KeosOGLTexture.h
- RenderSystems/OpenGL/KeosOGLTexture.cpp