Main Page   Namespace List   Class Hierarchy   Alphabetical List   Compound List   File List   Namespace Members   Compound Members   File Members   Related Pages  

glu_mipmap.cpp File Reference

#include "Teddy/Graphics/Device.h"
#include "Teddy/SysSupport/StdMaths.h"
#include <cassert>
#include <cstdio>
#include <cstdlib>

Include dependency graph for glu_mipmap.cpp:

Include dependency graph

Go to the source code of this file.

Defines

#define GLU_ERROR   100103
#define GLU_INVALID_ENUM   100900
#define GLU_INVALID_VALUE   100901
#define GLU_OUT_OF_MEMORY   100902
#define GLU_INVALID_OPERATION   100904
#define CEILING(A, B)   ( (A) % (B) == 0 ? (A)/(B) : (A)/(B)+1 )
#define EPSILON   0.001
#define dummy(J, K)

Functions

GLint glu_ScaleImage (GLenum format, GLsizei widthin, GLsizei heightin, GLenum typein, const void *datain, GLsizei widthout, GLsizei heightout, GLenum typeout, void **dataoutp)
GLint ilog2 (GLint n)
GLint round2 (GLint n)
GLint bytes_per_pixel (GLenum format, GLenum type)
GLint glu_Build1DMipmaps (GLenum target, GLint components, GLsizei width, GLenum format, GLenum type, const void *data)
GLint glu_Build2DMipmaps (GLenum target, GLint components, GLsizei width, GLsizei height, GLenum format, GLenum type, const void *data)


Define Documentation

#define CEILING A,
     ( (A) % (B) == 0 ? (A)/(B) : (A)/(B)+1 )
 

Definition at line 47 of file glu_mipmap.cpp.

Referenced by glu_ScaleImage.

#define dummy J,
 
 

Definition at line 64 of file glu_mipmap.cpp.

Referenced by glu_ScaleImage.

#define EPSILON   0.001
 

Definition at line 54 of file glu_mipmap.cpp.

#define GLU_ERROR   100103
 

Definition at line 27 of file glu_mipmap.cpp.

Referenced by glu_Build1DMipmaps.

#define GLU_INVALID_ENUM   100900
 

Definition at line 28 of file glu_mipmap.cpp.

Referenced by glu_Build2DMipmaps, and glu_ScaleImage.

#define GLU_INVALID_OPERATION   100904
 

Definition at line 31 of file glu_mipmap.cpp.

#define GLU_INVALID_VALUE   100901
 

Definition at line 29 of file glu_mipmap.cpp.

Referenced by glu_Build1DMipmaps, and glu_Build2DMipmaps.

#define GLU_OUT_OF_MEMORY   100902
 

Definition at line 30 of file glu_mipmap.cpp.

Referenced by glu_Build1DMipmaps, and glu_ScaleImage.


Function Documentation

GLint bytes_per_pixel GLenum    format,
GLenum    type
[static]
 

Definition at line 640 of file glu_mipmap.cpp.

Referenced by glu_Build2DMipmaps.

GLint glu_Build1DMipmaps GLenum    target,
GLint    components,
GLsizei    width,
GLenum    format,
GLenum    type,
const void *    data
 

Definition at line 715 of file glu_mipmap.cpp.

References GLU_ERROR, GLU_INVALID_VALUE, GLU_OUT_OF_MEMORY, and ilog2.

GLint glu_Build2DMipmaps GLenum    target,
GLint    components,
GLsizei    width,
GLsizei    height,
GLenum    format,
GLenum    type,
const void *    data
 

Definition at line 791 of file glu_mipmap.cpp.

References bytes_per_pixel, GLU_INVALID_ENUM, GLU_INVALID_VALUE, glu_ScaleImage, and round2.

GLint glu_ScaleImage GLenum    format,
GLsizei    widthin,
GLsizei    heightin,
GLenum    typein,
const void *    datain,
GLsizei    widthout,
GLsizei    heightout,
GLenum    typeout,
void **    dataoutp
 

Definition at line 69 of file glu_mipmap.cpp.

References CEILING, dummy, GLU_INVALID_ENUM, and GLU_OUT_OF_MEMORY.

GLint ilog2 GLint    n [static]
 

Definition at line 603 of file glu_mipmap.cpp.

Referenced by glu_Build1DMipmaps.

GLint round2 GLint    n [static]
 

Definition at line 619 of file glu_mipmap.cpp.

Referenced by glu_Build2DMipmaps.