From 959831f4ef5a3e797f576c3de08cd65032c997ad Mon Sep 17 00:00:00 2001 From: David Walter Seikel Date: Sun, 13 Jan 2013 18:54:10 +1000 Subject: Remove damned ancient DOS line endings from Irrlicht. Hopefully I did not go overboard. --- .../source/Irrlicht/CD3D9CgMaterialRenderer.h | 166 ++++++++++----------- 1 file changed, 83 insertions(+), 83 deletions(-) (limited to 'libraries/irrlicht-1.8/source/Irrlicht/CD3D9CgMaterialRenderer.h') diff --git a/libraries/irrlicht-1.8/source/Irrlicht/CD3D9CgMaterialRenderer.h b/libraries/irrlicht-1.8/source/Irrlicht/CD3D9CgMaterialRenderer.h index 7cb4b0f..3c9fdc2 100644 --- a/libraries/irrlicht-1.8/source/Irrlicht/CD3D9CgMaterialRenderer.h +++ b/libraries/irrlicht-1.8/source/Irrlicht/CD3D9CgMaterialRenderer.h @@ -1,83 +1,83 @@ -// Copyright (C) 2012-2012 Patryk Nadrowski -// This file is part of the "Irrlicht Engine". -// For conditions of distribution and use, see copyright notice in irrlicht.h - -#ifndef __C_DIRECT3D_9_CG_MATERIAL_RENDERER_H_INCLUDED__ -#define __C_DIRECT3D_9_CG_MATERIAL_RENDERER_H_INCLUDED__ - -#include "IrrCompileConfig.h" -#if defined(_IRR_COMPILE_WITH_DIRECT3D_9_) && defined(_IRR_COMPILE_WITH_CG_) - -#define WIN32_LEAN_AND_MEAN - -#include -#include -#include -#include "CCgMaterialRenderer.h" -#include "Cg/cgD3D9.h" - -#ifdef _MSC_VER - #pragma comment(lib, "cgD3D9.lib") -#endif - -namespace irr -{ -namespace video -{ - -class CD3D9Driver; -class IShaderConstantSetCallBack; - -class CD3D9CgUniformSampler2D : public CCgUniform -{ -public: - CD3D9CgUniformSampler2D(const CGparameter& parameter, bool global); - - void update(const void* data, const SMaterial& material) const; -}; - -class CD3D9CgMaterialRenderer : public CCgMaterialRenderer -{ -public: - CD3D9CgMaterialRenderer(CD3D9Driver* driver, s32& materialType, - const c8* vertexProgram = 0, const c8* vertexEntry = "main", - E_VERTEX_SHADER_TYPE vertexProfile = video::EVST_VS_1_1, - const c8* fragmentProgram = 0, const c8* fragmentEntry = "main", - E_PIXEL_SHADER_TYPE fragmentProfile = video::EPST_PS_1_1, - const c8* geometryProgram = 0, const c8* geometryEntry = "main", - E_GEOMETRY_SHADER_TYPE geometryProfile = video::EGST_GS_4_0, - scene::E_PRIMITIVE_TYPE inType = scene::EPT_TRIANGLES, - scene::E_PRIMITIVE_TYPE outType = scene::EPT_TRIANGLE_STRIP, - u32 vertices = 0, IShaderConstantSetCallBack* callback = 0, - IMaterialRenderer* baseMaterial = 0, s32 userData = 0); - - virtual ~CD3D9CgMaterialRenderer(); - - virtual void OnSetMaterial(const SMaterial& material, const SMaterial& lastMaterial, bool resetAllRenderstates, IMaterialRendererServices* services); - virtual bool OnRender(IMaterialRendererServices* services, E_VERTEX_TYPE vtxtype); - virtual void OnUnsetMaterial(); - - virtual void setBasicRenderStates(const SMaterial& material, const SMaterial& lastMaterial, bool resetAllRenderstates); - virtual IVideoDriver* getVideoDriver(); - -protected: - void init(s32& materialType, - const c8* vertexProgram = 0, const c8* vertexEntry = "main", - E_VERTEX_SHADER_TYPE vertexProfile = video::EVST_VS_1_1, - const c8* fragmentProgram = 0, const c8* fragmentEntry = "main", - E_PIXEL_SHADER_TYPE fragmentProfile = video::EPST_PS_1_1, - const c8* geometryProgram = 0, const c8* geometryEntry = "main", - E_GEOMETRY_SHADER_TYPE geometryProfile = video::EGST_GS_4_0, - scene::E_PRIMITIVE_TYPE inType = scene::EPT_TRIANGLES, - scene::E_PRIMITIVE_TYPE outType = scene::EPT_TRIANGLE_STRIP, - u32 vertices = 0); - - CD3D9Driver* Driver; -}; - -} -} - -#endif -#endif - +// Copyright (C) 2012-2012 Patryk Nadrowski +// This file is part of the "Irrlicht Engine". +// For conditions of distribution and use, see copyright notice in irrlicht.h + +#ifndef __C_DIRECT3D_9_CG_MATERIAL_RENDERER_H_INCLUDED__ +#define __C_DIRECT3D_9_CG_MATERIAL_RENDERER_H_INCLUDED__ + +#include "IrrCompileConfig.h" +#if defined(_IRR_COMPILE_WITH_DIRECT3D_9_) && defined(_IRR_COMPILE_WITH_CG_) + +#define WIN32_LEAN_AND_MEAN + +#include +#include +#include +#include "CCgMaterialRenderer.h" +#include "Cg/cgD3D9.h" + +#ifdef _MSC_VER + #pragma comment(lib, "cgD3D9.lib") +#endif + +namespace irr +{ +namespace video +{ + +class CD3D9Driver; +class IShaderConstantSetCallBack; + +class CD3D9CgUniformSampler2D : public CCgUniform +{ +public: + CD3D9CgUniformSampler2D(const CGparameter& parameter, bool global); + + void update(const void* data, const SMaterial& material) const; +}; + +class CD3D9CgMaterialRenderer : public CCgMaterialRenderer +{ +public: + CD3D9CgMaterialRenderer(CD3D9Driver* driver, s32& materialType, + const c8* vertexProgram = 0, const c8* vertexEntry = "main", + E_VERTEX_SHADER_TYPE vertexProfile = video::EVST_VS_1_1, + const c8* fragmentProgram = 0, const c8* fragmentEntry = "main", + E_PIXEL_SHADER_TYPE fragmentProfile = video::EPST_PS_1_1, + const c8* geometryProgram = 0, const c8* geometryEntry = "main", + E_GEOMETRY_SHADER_TYPE geometryProfile = video::EGST_GS_4_0, + scene::E_PRIMITIVE_TYPE inType = scene::EPT_TRIANGLES, + scene::E_PRIMITIVE_TYPE outType = scene::EPT_TRIANGLE_STRIP, + u32 vertices = 0, IShaderConstantSetCallBack* callback = 0, + IMaterialRenderer* baseMaterial = 0, s32 userData = 0); + + virtual ~CD3D9CgMaterialRenderer(); + + virtual void OnSetMaterial(const SMaterial& material, const SMaterial& lastMaterial, bool resetAllRenderstates, IMaterialRendererServices* services); + virtual bool OnRender(IMaterialRendererServices* services, E_VERTEX_TYPE vtxtype); + virtual void OnUnsetMaterial(); + + virtual void setBasicRenderStates(const SMaterial& material, const SMaterial& lastMaterial, bool resetAllRenderstates); + virtual IVideoDriver* getVideoDriver(); + +protected: + void init(s32& materialType, + const c8* vertexProgram = 0, const c8* vertexEntry = "main", + E_VERTEX_SHADER_TYPE vertexProfile = video::EVST_VS_1_1, + const c8* fragmentProgram = 0, const c8* fragmentEntry = "main", + E_PIXEL_SHADER_TYPE fragmentProfile = video::EPST_PS_1_1, + const c8* geometryProgram = 0, const c8* geometryEntry = "main", + E_GEOMETRY_SHADER_TYPE geometryProfile = video::EGST_GS_4_0, + scene::E_PRIMITIVE_TYPE inType = scene::EPT_TRIANGLES, + scene::E_PRIMITIVE_TYPE outType = scene::EPT_TRIANGLE_STRIP, + u32 vertices = 0); + + CD3D9Driver* Driver; +}; + +} +} + +#endif +#endif + -- cgit v1.1