shaderlib.h File Reference

#include "string/string.h"
#include "character.h"
#include "ishadersystem.h"
Include dependency graph for shaderlib.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Data Structures

class  shader_less_t

Defines

#define INCLUDED_SHADERLIB_H

Functions

bool shader_equal (const std::string &shader, const std::string &other)
bool shader_equal_n (const std::string &shader, const std::string &other, std::size_t n)
bool shader_less (const std::string &shader, const std::string &other)
bool shader_equal_prefix (const std::string &string, const std::string &prefix)
bool shader_valid (const char *shader)
const std::stringGlobalTexturePrefix_get ()
bool shader_is_texture (const std::string &name)
const std::string shader_get_textureName (const std::string &name)
bool texdef_name_valid (const std::string &name)

Define Documentation

#define INCLUDED_SHADERLIB_H

Definition at line 23 of file shaderlib.h.


Function Documentation

const std::string& GlobalTexturePrefix_get (  )  [inline]

Definition at line 65 of file shaderlib.h.

References ShaderSystem::getTexturePrefix(), and GlobalShaderSystem().

Referenced by shader_get_textureName(), and shader_is_texture().

bool shader_equal ( const std::string shader,
const std::string other 
) [inline]
Deprecated:
  • use string compare directory. Shaders are only equal if filenames and shader ids are matching

Definition at line 30 of file shaderlib.h.

bool shader_equal_n ( const std::string shader,
const std::string other,
std::size_t  n 
) [inline]

Definition at line 35 of file shaderlib.h.

Referenced by shader_equal_prefix().

bool shader_equal_prefix ( const std::string string,
const std::string prefix 
) [inline]

Definition at line 45 of file shaderlib.h.

References shader_equal_n().

Referenced by TextureNameList::forEach(), and shader_is_texture().

const std::string shader_get_textureName ( const std::string name  )  [inline]

Definition at line 75 of file shaderlib.h.

References GlobalTexturePrefix_get().

bool shader_is_texture ( const std::string name  )  [inline]

Definition at line 70 of file shaderlib.h.

References GlobalTexturePrefix_get(), and shader_equal_prefix().

Referenced by texdef_name_valid().

bool shader_less ( const std::string shader,
const std::string other 
) [inline]

Definition at line 40 of file shaderlib.h.

Referenced by shader_less_t::operator()().

bool shader_valid ( const char *  shader  )  [inline]

Definition at line 59 of file shaderlib.h.

References string_is_ascii().

Referenced by brush_check_shader(), and texdef_name_valid().

bool texdef_name_valid ( const std::string name  )  [inline]

Definition at line 80 of file shaderlib.h.

References shader_is_texture(), and shader_valid().


Generated by  doxygen 1.6.2