3Depict
All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros
Classes | Enumerations | Functions | Variables
textures.h File Reference
#include "common/basics.h"
#include <GL/gl.h>
#include <GL/glu.h>
#include <vector>
#include <string>
Include dependency graph for textures.h:
This graph shows which files directly or indirectly include this file:

Classes

struct  texture
 
class  TexturePool
 

Enumerations

enum  {
  TEXTURE_LEFT_CLICK =0, TEXTURE_TRANSLATE, TEXTURE_RIGHT_CLICK, TEXTURE_ROTATE,
  TEXTURE_MIDDLE_CLICK, TEXTURE_SCROLL_WHEEL, TEXTURE_ENLARGE, TEXTURE_CTRL,
  TEXTURE_COMMAND, TEXTURE_ALT, TEXTURE_TAB, TEXTURE_SHIFT
}
 

Functions

int pngTexture (texture *dest, const char *filename, GLenum type)
 Type can be GL_TEXTURE_1D or GL_TEXTURE_2D. More...
 
int pngTexture3D (texture *, const std::vector< std::string > &filenames)
 
int pngTexture2D (texture *, const char *)
 
int pngTexture1D (texture *, const char *)
 

Variables

const char * TEXTURE_OVERLAY_PNG []
 

Enumeration Type Documentation

◆ anonymous enum

anonymous enum
Enumerator
TEXTURE_LEFT_CLICK 
TEXTURE_TRANSLATE 
TEXTURE_RIGHT_CLICK 
TEXTURE_ROTATE 
TEXTURE_MIDDLE_CLICK 
TEXTURE_SCROLL_WHEEL 
TEXTURE_ENLARGE 
TEXTURE_CTRL 
TEXTURE_COMMAND 
TEXTURE_ALT 
TEXTURE_TAB 
TEXTURE_SHIFT 

Function Documentation

◆ pngTexture()

int pngTexture ( texture dest,
const char *  filename,
GLenum  type 
)

Type can be GL_TEXTURE_1D or GL_TEXTURE_2D.

References check_if_png(), texture::data, free_pngrowpointers(), texture::glID, texture::height, read_png(), and texture::width.

Referenced by pngTexture1D(), pngTexture2D(), and TexturePool::TexturePool().

Here is the caller graph for this function:

◆ pngTexture1D()

int pngTexture1D ( texture ,
const char *   
)

References pngTexture().

Referenced by TexturePool::TexturePool().

Here is the caller graph for this function:

◆ pngTexture2D()

int pngTexture2D ( texture ,
const char *   
)

References pngTexture().

Referenced by TexturePool::openTexture(), and TexturePool::TexturePool().

Here is the caller graph for this function:

◆ pngTexture3D()

int pngTexture3D ( texture ,
const std::vector< std::string > &  filenames 
)

Variable Documentation

◆ TEXTURE_OVERLAY_PNG

const char* TEXTURE_OVERLAY_PNG[]

Referenced by Scene::drawOverlays().