3Depict
All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros
Functions | Variables
textures.cpp File Reference
#include "textures.h"
#include "wx/wxcommon.h"
#include "common/pngread.h"
#include <string>
#include <iostream>
Include dependency graph for textures.cpp:

Functions

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

Variables

const char * TEXTURE_OVERLAY_PNG []
 

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 dest,
const char *  filename 
)

References pngTexture().

Referenced by TexturePool::TexturePool().

Here is the caller graph for this function:

◆ pngTexture2D()

int pngTexture2D ( texture dest,
const char *  filename 
)

References pngTexture().

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

Here is the caller graph for this function:

◆ pngTexture3D()

int pngTexture3D ( texture dest,
const vector< string > &  fileNames 
)

Variable Documentation

◆ TEXTURE_OVERLAY_PNG

const char* TEXTURE_OVERLAY_PNG[]
Initial value:
= {
"textures/Left_clicked_mouse.png",
"textures/Left-Right-arrow.png",
"textures/Right_clicked_mouse.png",
"textures/rotateArrow.png",
"textures/middle_clicked_mouse.png",
"textures/scroll_wheel_mouse.png",
"textures/enlarge.png",
"textures/keyboard-ctrl.png",
"textures/keyboard-command.png",
"textures/keyboard-alt.png",
"textures/keyboard-tab.png",
"textures/keyboard-shift.png",
}

Referenced by Scene::drawOverlays().