class OpenGLpng


Public Fields

[more]GLuint texID

Public Methods

[more] OpenGLpng()
[more]virtual ~OpenGLpng()
[more]bool SaveGLBuffer(char szFileName[])
load/save
[more]bool SaveGLBufferC(char szFileName[], const string* keycomment, const string* comment, int numcomment)
bool SaveGLBufferC(char szFileName[], char keycomment[], char comment[], int numcomment);
[more]bool LoadImage(char szFileName[])
[more]bool Invert()
Image manipulation
[more]bool FlipVert()
[more]bool FlipHorz()
[more]bool Rotate180()
[more]void GenTexture()
Texture creation/management
[more]void SetTextureWrap(GLint s, GLint y)
creates texture for current texture selected in OpenGL
[more]void SetFilter(GLint min, GLint mag)
[more]void Bind()
[more]inline int GetWidth()
[more]inline int GetHeight()
[more]inline int GetColorDepth()
[more]inline const void* GetData()
[more]inline INTERNALFORMAT GetInternalFormat()
[more]void PrintInfo()
texture identificator
[more]bool SavePNG(const char* filename, const string* keycomment, const string* comment, int numcomment)
[more]bool LoadPNGImage(char szFileName[], vector<string> &keycomment, vector<string> &comment, int &numcomment)
[more]bool SaveImage(char szFileName[])

Private Fields

[more]int m_width
image data
[more]int m_height
[more]int m_colorDepth
[more]INTERNALFORMAT m_iFormat
[more]GLRGBQUAD* m_pData
[more]GLint m_texWrapS
Texture parameters
[more]GLint m_texWrapT
[more]GLint m_minFilter
[more]GLint m_magFilter

Private Methods

[more]bool SavePNG(const char* filename)
[more]bool SavePPM(const char* filename)
[more]bool SaveJPG(const char* filename)
[more]bool LoadPNG(const char* filename)
[more]bool LoadJPG(const char* filename)
[more]bool LoadPPM(const char* filename)
[more]bool LoadTGA(const char* filename)
[more]void ExpandTo32(RGBTRIPLE* image, int pad)
[more]void SetAlpha(unsigned char alpha)
[more]bool SetInternalFormat(INTERNALFORMAT format)
[more]inline void ClearMem()


Documentation

o OpenGLpng()

ovirtual ~OpenGLpng()

obool SaveGLBuffer(char szFileName[])
load/save

obool SaveGLBufferC(char szFileName[], const string* keycomment, const string* comment, int numcomment)
bool SaveGLBufferC(char szFileName[], char keycomment[], char comment[], int numcomment);

obool LoadImage(char szFileName[])

obool Invert()
Image manipulation

obool FlipVert()

obool FlipHorz()

obool Rotate180()

ovoid GenTexture()
Texture creation/management

ovoid SetTextureWrap(GLint s, GLint y)
creates texture for current texture selected in OpenGL

ovoid SetFilter(GLint min, GLint mag)

ovoid Bind()

oinline int GetWidth()

oinline int GetHeight()

oinline int GetColorDepth()

oinline const void* GetData()

oinline INTERNALFORMAT GetInternalFormat()

oGLuint texID

ovoid PrintInfo()
texture identificator

obool SavePNG(const char* filename, const string* keycomment, const string* comment, int numcomment)

obool LoadPNGImage(char szFileName[], vector<string> &keycomment, vector<string> &comment, int &numcomment)

obool SaveImage(char szFileName[])

obool SavePNG(const char* filename)

obool SavePPM(const char* filename)

obool SaveJPG(const char* filename)

obool LoadPNG(const char* filename)

obool LoadJPG(const char* filename)

obool LoadPPM(const char* filename)

obool LoadTGA(const char* filename)

ovoid ExpandTo32(RGBTRIPLE* image, int pad)

ovoid SetAlpha(unsigned char alpha)

oint m_width
image data

oint m_height

oint m_colorDepth

oINTERNALFORMAT m_iFormat

oGLRGBQUAD* m_pData

oGLint m_texWrapS
Texture parameters

oGLint m_texWrapT

oGLint m_minFilter

oGLint m_magFilter

obool SetInternalFormat(INTERNALFORMAT format)

oinline void ClearMem()


This class has no child classes.

Alphabetic index HTML hierarchy of classes or Java



This page was generated with the help of DOC++.