Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Jan 28, 2007, 9:26:08 PM (18 years ago)
Author:
patrick
Message:

some texture attributes, camera target fix

File:
1 edited

Legend:

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

    r8363 r10460  
    2121#include "compiler.h"
    2222
    23 #include "sdlincl.h"
    2423
    2524/**
     
    3130  this->texture = 0;
    3231  this->image = NULL;
     32  this->height = 0.;
     33  this->width = 0.;
    3334}
    3435
     
    5657bool TextureData::loadSurface(SDL_Surface* surface, GLenum target)
    5758{
     59  if( surface != NULL)
     60  {
     61    this->height = surface->h;
     62    this->width = surface->w;
     63  }
     64
    5865  if (Texture::getTextureEnableState())
    5966  {
Note: See TracChangeset for help on using the changeset viewer.