Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 5858 in orxonox.OLD for trunk/src/lib/graphics/importer/texture.cc


Ignore:
Timestamp:
Dec 1, 2005, 8:03:35 PM (20 years ago)
Author:
bensch
Message:

orxonox/trunk: introducing multiframe-texture

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/lib/graphics/importer/texture.cc

    r5856 r5858  
    1919
    2020#include "debug.h"
    21 #include "graphics_engine.h"
    22 
     21
     22// INCLUDING SDL_Image
    2323#ifdef HAVE_SDL_IMAGE_H
    2424#include <SDL_image.h>
     
    5858}
    5959
    60 
    6160/**
    6261 *  loads an Image from a file to a Texture
     
    6564bool Texture::loadImage(const char* imageName)
    6665{
    67   if (GraphicsEngine::texturesEnabled)
     66  if (Texture::texturesEnabled)
    6867    {
    6968      if (this->image != NULL)
     
    195194
    196195
     196bool Texture::texturesEnabled = true;
     197
     198/**
     199 * enables, disables textures
     200 * @param texturesEnabled true if the textures should be enabled
     201 */
     202void Texture::setTextureEnableState(bool texturesEnabled)
     203{
     204  Texture::texturesEnabled = texturesEnabled;
     205}
     206
     207
     208//////////////////////////////////////
     209// UTILITY FUNCTIONALITY OF TEXTURE //
     210//////////////////////////////////////
    197211/**
    198212 *  Loads a Texture to the openGL-environment.
Note: See TracChangeset for help on using the changeset viewer.