Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 9806 in orxonox.OLD for branches/new_class_id/src/world_entities


Ignore:
Timestamp:
Sep 24, 2006, 10:30:13 PM (18 years ago)
Author:
bensch
Message:

try with the shader

Location:
branches/new_class_id/src/world_entities/npcs
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • branches/new_class_id/src/world_entities/npcs/attractor_mine.cc

    r9757 r9806  
    6666
    6767  this->shader = NULL;
    68   if (likely(Shader::checkShaderAbility()))
    69     this->shader = Shader::getShader("shaders/toon.vert", "shaders/toon.frag");
     68  //if (likely(Shader::checkShaderAbility()))
     69//    this->shader = Shader::getShader("shaders/toon.vert", "shaders/toon.frag");
    7070
    7171  this->randomRotAxis = VECTOR_RAND(1);
     
    7878AttractorMine::~AttractorMine ()
    7979{
    80   if (this->shader)
    81     Shader::unload(this->shader);
    8280}
    83 
    8481
    8582void AttractorMine::loadParams(const TiXmlElement* root)
  • branches/new_class_id/src/world_entities/npcs/generic_npc.cc

    r9757 r9806  
    2929
    3030#include "loading/resource_manager.h"
     31#include "sound/resource_sound_buffer.h"
    3132
    3233#include "bsp_entity.h"
     
    8889  this->toList(OM_GROUP_00);
    8990
    90   this->soundBuffer = (OrxSound::SoundBuffer*)ResourceManager::getInstance()->load("sound/rain.wav", WAV);
     91  this->soundBuffer = OrxSound::ResourceSoundBuffer("sound/rain.wav");
    9192
    9293  time = 30.0f;
  • branches/new_class_id/src/world_entities/npcs/generic_npc.h

    r9715 r9806  
    124124
    125125   OrxSound::SoundSource                   soundSource;
    126    OrxSound::SoundBuffer*                  soundBuffer;
     126   OrxSound::SoundBuffer                   soundBuffer;
    127127   float                                   soundVolume;
    128128
  • branches/new_class_id/src/world_entities/npcs/npc_test.cc

    r9716 r9806  
    4848
    4949  this->shader = NULL;
    50   if (likely(Shader::checkShaderAbility()))
    51     this->shader = Shader::getShader("shaders/toon.vert", "shaders/toon.frag");
     50//  if (likely(Shader::checkShaderAbility()))
     51    //this->shader = Shader::getShader("shaders/toon.vert", "shaders/toon.frag");
    5252
    5353  this->randomRotAxis = VECTOR_RAND(1);
     
    5959
    6060NPC2::~NPC2 ()
    61 {
    62   if (this->shader)
    63     Shader::unload(this->shader);
    64 }
     61{}
    6562
    6663
Note: See TracChangeset for help on using the changeset viewer.