当前位置: 首页>>代码示例>>C++>>正文


C++ InitializeShader函数代码示例

本文整理汇总了C++中InitializeShader函数的典型用法代码示例。如果您正苦于以下问题:C++ InitializeShader函数的具体用法?C++ InitializeShader怎么用?C++ InitializeShader使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。


在下文中一共展示了InitializeShader函数的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C++代码示例。

示例1: Initialize

ShaderErrors LightShader::Initialize(ID3D11Device* device, HWND hwnd, IShaderParams* params)
{
	if(!InitializeShader(device,hwnd,params,L"../../Core/Engine/Shaders/LightShader/VertexShader.hlsl",L"../../Core/Engine/Shaders/LightShader/PixelShader.hlsl"))
		return SHDR_COMPILATION_FAILED;
	
	return SHDR_OK;
}
开发者ID:xrEngine512,项目名称:AEngine,代码行数:7,代码来源:LightShader.cpp

示例2: InitializeShader

bool ReflectionShaderClass::Initialize(ID3D11Device* device, HWND hwnd)
{
	bool result;

	result = InitializeShader(device, hwnd, L"../Engine/reflectionvs.hlsl", L"../Engine/reflectionps.hlsl");
	return result;
}
开发者ID:LeonZhao84,项目名称:rastertek,代码行数:7,代码来源:reflectionshaderclass.cpp

示例3: InitializeShader

bool TranslateShaderClass::Initialize(ID3D11Device* device, HWND hwnd)
{
	bool result;

	result = InitializeShader(device, hwnd, L"../Engine/translatevs.hlsl", L"../Engine/translateps.hlsl");
	return result;
}
开发者ID:LeonZhao84,项目名称:rastertek,代码行数:7,代码来源:translateshaderclass.cpp

示例4: InitializeShader

bool LightingShaderClass::Initialize(ID3D11Device* device, HWND hwnd)
{
	bool result;

	// Initialize the vertex and pixel shaders.
	//result = InitializeShader(device, hwnd, L"./DirectionalLight/LightingAmbient.fx", L"./DirectionalLight/LightingAmbient.fx");
	//result = InitializeShader(device, hwnd, L"./DirectionalLight/LightingDiffuse.fx", L"./DirectionalLight/LightingDiffuse.fx");
	result = InitializeShader(device, hwnd, L"./DirectionalLight/LightingPhongDiffuse.fx", L"./DirectionalLight/LightingPhongDiffuse.fx");
	//result = InitializeShader(device, hwnd, L"./DirectionalLight/LightingPhongSpecular.fx", L"./DirectionalLight/LightingPhongSpecular.fx");
	//result = InitializeShader(device, hwnd, L"./DirectionalLight/LightingSpecular.fx", L"./DirectionalLight/LightingSpecular.fx");

	//result = InitializeShader(device, hwnd, L"./PointLight/LightingDiffuse.fx", L"./PointLight/LightingDiffuse.fx");
	//result = InitializeShader(device, hwnd, L"./PointLight/LightingPhongDiffuse.fx", L"./PointLight/LightingPhongDiffuse.fx");
	//result = InitializeShader(device, hwnd, L"./PointLight/LightingPhongSpecular.fx", L"./PointLight/LightingPhongSpecular.fx");
	//result = InitializeShader(device, hwnd, L"./PointLight/LightingSpecular.fx", L"./PointLight/LightingSpecular.fx");

	//result = InitializeShader(device, hwnd, L"./SpotLight/LightingDiffuse.fx", L"./SpotLight/LightingDiffuse.fx");
	//result = InitializeShader(device, hwnd, L"./SpotLight/LightingPhongDiffuse.fx", L"./SpotLight/LightingPhongDiffuse.fx");
	//result = InitializeShader(device, hwnd, L"./SpotLight/LightingPhongSpecular.fx", L"./SpotLight/LightingPhongSpecular.fx");
	//result = InitializeShader(device, hwnd, L"./SpotLight/LightingSpecular.fx", L"./SpotLight/LightingSpecular.fx");

	if(!result)
	{
		return false;
	}
	return true;
}
开发者ID:kuldarim,项目名称:directx_lightning_1,代码行数:27,代码来源:lighting_shaderclass.cpp

示例5: Initialize

	bool AlphaMapShader::Initialize(Graphics* graphics)
	{
		if(!InitializeShader(graphics,L"Content/Shaders/AlphaMapVS.cso",L"Content/Shaders/AlphaMapPS.cso"))
			return false;

		return true;
	}
开发者ID:Alriightyman,项目名称:GameEngine,代码行数:7,代码来源:AlphaMapShader.cpp

示例6: InitializeShader

bool FontShader::Initialize(ID3D11Device* device, HWND hwnd)
{
	bool result;
	result = InitializeShader(device, hwnd, "FontVertexShader.hlsl", "FontPixelShader.hlsl");
	if (!result) return false;
	return true;
}
开发者ID:ACPLMaverick,项目名称:marjan,代码行数:7,代码来源:FontShader.cpp

示例7: Initialize

bool FontShaderClass::Initialize(ID3D11Device* device, HWND hwnd)
{
	if (!InitializeShader(device, hwnd, L"../GameGame/font.vs", L"../GameGame/font.ps"))
		return false;

	return true;
}
开发者ID:vu1p3n0x,项目名称:GameGame,代码行数:7,代码来源:fontshaderclass.cpp

示例8: InitializeShader

bool FoliageShaderClass::Initialize(ID3D10Device* device)
{
	bool result;

	result = InitializeShader(device, L"../ModellingInThreeDimensions/data/foliage/foliage.fx");

	return true;
}
开发者ID:TimothyOneill,项目名称:TimsWorkspace,代码行数:8,代码来源:FoliageShaderClass.cpp

示例9: InitializeShader

Shader::Shader(std::string vpFile, std::string fpFile)
{
	m_vp.assign(LoadShaderProgram(vpFile));
	m_gp.clear();
	m_fp.assign(LoadShaderProgram(fpFile));

	InitializeShader();
}
开发者ID:lubosz,项目名称:GL3EngineEZR,代码行数:8,代码来源:shader.cpp

示例10: Initialize

	bool MultiTextureShader::Initialize(Graphics* graphics)
	{
		// initialize our shaders
		if(!InitializeShader(graphics,L"Content/Shaders/MultiTextureVS.cso", L"Content/Shaders/MultiTexturePS.cso"))
			return false;

		return true;
	}
开发者ID:Alriightyman,项目名称:GameEngine,代码行数:8,代码来源:MultiTextureShader.cpp

示例11: InitializeShader

bool BumpMapShader::Initialize(ID3D11Device* device, HWND hwnd) {
	bool result;
	
	// Initialize the vertex and pixel shaders.
	result = InitializeShader(device, hwnd, L"bumpmap.vs.hlsl", L"bumpmap.ps.hlsl");
	if(!result) return false;

	return true;
}
开发者ID:francislavoie,项目名称:COMP3501-Fall2013,代码行数:9,代码来源:bumpmapshader.cpp

示例12: InitializeShader

bool ProjectionLightMapShaderClass::Initialize(ID3D11Device* device, HWND hwnd){
	bool result;

	// Initialize the vertex and pixel shaders.
	result = InitializeShader(device, hwnd, L"projection_lightmap_vert.hlsl", L"projection_lightmap_pix.hlsl");
	if (!result) return false;

	return true;
}
开发者ID:braedy,项目名称:directx11-personal,代码行数:9,代码来源:projectionlightmapshaderclass.cpp

示例13: InitializeShader

bool TextureShaderClass::Initialize(ID3D10Device* device, HWND hWnd) {
	bool result;

	result = InitializeShader(device, hWnd, L"../DX10/texture.fx");
	if (!result) {
		return false;
	}

	return true;
}
开发者ID:Jaymz,项目名称:DX10,代码行数:10,代码来源:textureshaderclass.cpp

示例14: InitializeShader

bool ColorShaderClass::Initialize(ID3D11Device* device, HWND hwnd)
{
	bool result;

	//Initialize the vertex and pixel shaders
	result = InitializeShader(device, hwnd, L"../Engine/color.vs", L"../Engine/color.ps");
	if(!result)
		return false;

	return true;
}
开发者ID:stryder199,项目名称:GameDev,代码行数:11,代码来源:colorshaderclass.cpp

示例15: InitializeShader

bool ColorShaderClass::Initialize(ID3D11Device* device, HWND hwnd)
{
	bool result;

	result = InitializeShader(device, hwnd, L"ColorVertex.vs", L"ColorPixel.ps");
	if (!result)
	{
		return false;
	}
	return true;
}
开发者ID:peartail,项目名称:DirectXPractice2,代码行数:11,代码来源:ColorShaderClass.cpp


注:本文中的InitializeShader函数示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。