1
0
Fork 0
mirror of https://github.com/OpenMW/openmw.git synced 2025-02-04 05:45:35 +00:00

Merge remote branch 'ace/win-fix'

This commit is contained in:
Marc Zinnschlag 2012-03-31 21:31:16 +02:00
commit 89fb3146ab
2 changed files with 8 additions and 7 deletions

View file

@ -50,7 +50,7 @@ namespace Ogre
terrain. terrain.
@note Requires the Cg plugin to render correctly @note Requires the Cg plugin to render correctly
*/ */
class _OgreTerrainExport TerrainMaterialGeneratorB : public TerrainMaterialGenerator class TerrainMaterialGeneratorB : public TerrainMaterialGenerator
{ {
public: public:
TerrainMaterialGeneratorB(); TerrainMaterialGeneratorB();
@ -58,7 +58,7 @@ namespace Ogre
/** Shader model 2 profile target. /** Shader model 2 profile target.
*/ */
class _OgreTerrainExport SM2Profile : public TerrainMaterialGenerator::Profile class SM2Profile : public TerrainMaterialGenerator::Profile
{ {
public: public:
SM2Profile(TerrainMaterialGenerator* parent, const String& name, const String& desc); SM2Profile(TerrainMaterialGenerator* parent, const String& name, const String& desc);
@ -161,7 +161,7 @@ namespace Ogre
void addTechnique(const MaterialPtr& mat, const Terrain* terrain, TechniqueType tt); void addTechnique(const MaterialPtr& mat, const Terrain* terrain, TechniqueType tt);
/// Interface definition for helper class to generate shaders /// Interface definition for helper class to generate shaders
class _OgreTerrainExport ShaderHelper : public TerrainAlloc class ShaderHelper : public TerrainAlloc
{ {
public: public:
ShaderHelper() {} ShaderHelper() {}
@ -194,7 +194,7 @@ namespace Ogre
}; };
/// Utility class to help with generating shaders for Cg / HLSL. /// Utility class to help with generating shaders for Cg / HLSL.
class _OgreTerrainExport ShaderHelperCg : public ShaderHelper class ShaderHelperCg : public ShaderHelper
{ {
protected: protected:
HighLevelGpuProgramPtr createVertexProgram(const SM2Profile* prof, const Terrain* terrain, TechniqueType tt); HighLevelGpuProgramPtr createVertexProgram(const SM2Profile* prof, const Terrain* terrain, TechniqueType tt);
@ -212,7 +212,7 @@ namespace Ogre
void generateFpDynamicShadows(const SM2Profile* prof, const Terrain* terrain, TechniqueType tt, StringUtil::StrStreamType& outStream); void generateFpDynamicShadows(const SM2Profile* prof, const Terrain* terrain, TechniqueType tt, StringUtil::StrStreamType& outStream);
}; };
class _OgreTerrainExport ShaderHelperHLSL : public ShaderHelperCg class ShaderHelperHLSL : public ShaderHelperCg
{ {
protected: protected:
HighLevelGpuProgramPtr createVertexProgram(const SM2Profile* prof, const Terrain* terrain, TechniqueType tt); HighLevelGpuProgramPtr createVertexProgram(const SM2Profile* prof, const Terrain* terrain, TechniqueType tt);
@ -220,7 +220,7 @@ namespace Ogre
}; };
/// Utility class to help with generating shaders for GLSL. /// Utility class to help with generating shaders for GLSL.
class _OgreTerrainExport ShaderHelperGLSL : public ShaderHelper class ShaderHelperGLSL : public ShaderHelper
{ {
protected: protected:
HighLevelGpuProgramPtr createVertexProgram(const SM2Profile* prof, const Terrain* terrain, TechniqueType tt); HighLevelGpuProgramPtr createVertexProgram(const SM2Profile* prof, const Terrain* terrain, TechniqueType tt);

View file

@ -71,7 +71,7 @@ static ALenum getALFormat(ChannelConfig chans, SampleType type)
class OpenAL_SoundStream : public Sound class OpenAL_SoundStream : public Sound
{ {
static const ALuint sNumBuffers = 6; static const ALuint sNumBuffers = 6;
static const ALfloat sBufferLength = 0.125f; static const ALfloat sBufferLength;
OpenAL_Output &mOutput; OpenAL_Output &mOutput;
@ -101,6 +101,7 @@ public:
bool process(); bool process();
}; };
const ALfloat OpenAL_SoundStream::sBufferLength = 0.125f;
// //
// A background streaming thread (keeps active streams processed) // A background streaming thread (keeps active streams processed)