Back to index

supertuxkart  0.5+dfsg1
Defines | Functions
material.cpp File Reference
#include "file_manager.hpp"
#include "material.hpp"
#include "string_utils.hpp"

Go to the source code of this file.

Defines

#define UCLAMP   1
#define VCLAMP   2

Functions

int clearSpheremap (ssgEntity *)
int setSpheremap (ssgEntity *)

Define Documentation

#define UCLAMP   1

Definition at line 24 of file material.cpp.

#define VCLAMP   2

Definition at line 25 of file material.cpp.


Function Documentation

int clearSpheremap ( ssgEntity *  )

Definition at line 27 of file material.cpp.

{
    glDisable   ( GL_TEXTURE_GEN_S ) ;
    glDisable   ( GL_TEXTURE_GEN_T ) ;
    return true ;
}   // clearSpheremap

Here is the caller graph for this function:

int setSpheremap ( ssgEntity *  )

Definition at line 35 of file material.cpp.

{
    glTexGeni   ( GL_S, GL_TEXTURE_GEN_MODE, GL_SPHERE_MAP ) ;
    glTexGeni   ( GL_T, GL_TEXTURE_GEN_MODE, GL_SPHERE_MAP ) ;
    glEnable    ( GL_TEXTURE_GEN_S ) ;
    glEnable    ( GL_TEXTURE_GEN_T ) ;
    return true ;
}   // setSpheremap

Here is the caller graph for this function: