Textured shapes == success

git-svn-id: https://projectm.svn.sourceforge.net/svnroot/projectm/trunk@387 6778bc44-b910-0410-a7a0-be141de4315d
This commit is contained in:
psperl
2007-09-03 18:54:00 +00:00
parent 98726406ad
commit 85e46e522a
4 changed files with 9 additions and 3 deletions

View File

@ -723,7 +723,11 @@ void Renderer::draw_shapes(PresetOutputs *presetOutputs) {
if ( (*pos)->textured)
{
if ((*pos)->getImageUrl() !="")
{
GLuint tex = textureManager->getTexture((*pos)->getImageUrl());
if (tex != 0) glBindTexture(GL_TEXTURE_2D, tex);
}
//glBindTexture(GL_TEXTURE_2D, texture);
glTexEnvf(GL_TEXTURE_ENV, GL_TEXTURE_ENV_MODE, GL_MODULATE);

View File

@ -4,7 +4,6 @@
#include "PBuffer.hpp"
#include "PresetFrameIO.hpp"
#include "BeatDetect.hpp"
#include "TextureManager.hpp"
#include <string>
#ifdef USE_FTGL
@ -14,6 +13,7 @@
#endif /** USE_FTGL */
class BeatDetect;
class TextureManager;
class Renderer
{

View File

@ -54,6 +54,7 @@
#include "Renderer.hpp"
#include "PresetChooser.hpp"
#include "ConfigFile.h"
#include "TextureManager.hpp"
#ifdef LINUX
const std::string projectM::PROJECTM_PRESET_PATH ( "/usr/share/projectM/presets/" );

View File

@ -70,7 +70,7 @@
#include "fatal.h"
#include "PresetFrameIO.hpp"
#include "Renderer.hpp"
#include "TextureManager.hpp"
#include <memory>
@ -82,6 +82,7 @@ class Preset;
class PresetIterator;
class PresetChooser;
class PresetLoader;
class TextureManager;
#include <memory>
#ifdef WIN32