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


Java GL20.glDeleteProgram方法代码示例

本文整理汇总了Java中org.lwjgl.opengl.GL20.glDeleteProgram方法的典型用法代码示例。如果您正苦于以下问题:Java GL20.glDeleteProgram方法的具体用法?Java GL20.glDeleteProgram怎么用?Java GL20.glDeleteProgram使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在org.lwjgl.opengl.GL20的用法示例。


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

示例1: validate

import org.lwjgl.opengl.GL20; //导入方法依赖的package包/类
public Program validate()
{
	GL20.glValidateProgram(this.handle);

	int status = GL20.glGetProgrami(this.handle, GL20.GL_VALIDATE_STATUS);
	if (status == GL11.GL_FALSE)
	{
		String infoLog = GL20.glGetProgramInfoLog(this.handle);
		GL20.glDeleteProgram(this.handle);
		this.handle = 0;

		throw new GLException(infoLog);
	}

	return this;
}
 
开发者ID:andykuo1,项目名称:candlelight,代码行数:17,代码来源:Program.java

示例2: cleanUp

import org.lwjgl.opengl.GL20; //导入方法依赖的package包/类
public void cleanUp() {
	stop();
	GL20.glDetachShader(programID, vertexShaderID);
	GL20.glDetachShader(programID,  fragmentShaderID);
	GL20.glDeleteShader(vertexShaderID);
	GL20.glDeleteShader(fragmentShaderID);
	GL20.glDeleteProgram(programID);
}
 
开发者ID:marcioz98,项目名称:MRCEngine,代码行数:9,代码来源:ShaderProgram.java

示例3: deleteShaderProgram

import org.lwjgl.opengl.GL20; //导入方法依赖的package包/类
public void deleteShaderProgram() {
	GL15.glDeleteBuffers(vbo);
	vbo = 0;
	GL15.glDeleteBuffers(worldChunkSsbo);
	worldChunkSsbo = 0;
	GL15.glDeleteBuffers(chunkSsbo);
	chunkSsbo = 0;
	GL20.glDeleteProgram(shaderProgram);
	shaderProgram = 0;
}
 
开发者ID:18107,项目名称:MC-Ray-Tracer,代码行数:11,代码来源:Shader.java

示例4: cleanUp

import org.lwjgl.opengl.GL20; //导入方法依赖的package包/类
public void cleanUp() {
    LOGGER.debug("Cleaning resources for program - {} vertex - {} fragment - {}", programId, vertShaderId, fragShaderId);
    stop();
    GL20.glDetachShader(programId, vertShaderId);
    GL20.glDetachShader(programId, fragShaderId);
    GL20.glDeleteShader(vertShaderId);
    GL20.glDeleteShader(fragShaderId);
    GL20.glDeleteProgram(programId);
}
 
开发者ID:Biacode,项目名称:bia-engine,代码行数:10,代码来源:ShaderProgram.java

示例5: glDeleteProgram

import org.lwjgl.opengl.GL20; //导入方法依赖的package包/类
public static void glDeleteProgram(int program)
{
    if (arbShaders)
    {
        ARBShaderObjects.glDeleteObjectARB(program);
    }
    else
    {
        GL20.glDeleteProgram(program);
    }
}
 
开发者ID:Notoh,项目名称:DecompiledMinecraft,代码行数:12,代码来源:OpenGlHelper.java

示例6: destroy

import org.lwjgl.opengl.GL20; //导入方法依赖的package包/类
/**
 * Cleanup
 */
public void destroy() {
	GL20.glUseProgram(0);

	// Delete the shaders
	for (Shader shader : shaders) {
		GL20.glDetachShader(id, shader.id);
		shader.destroy();
	}

	// Delete the program
	GL20.glDeleteProgram(id);
}
 
开发者ID:tacocat,项目名称:lambda,代码行数:16,代码来源:ShaderProgram.java

示例7: cleanUp

import org.lwjgl.opengl.GL20; //导入方法依赖的package包/类
/**
 * Cleans up shader when exiting.
 */
public void cleanUp() {
    stop();
    GL20.glDetachShader(programID, vertexShaderID);
    GL20.glDetachShader(programID, fragmentShaderID);
    GL20.glDeleteShader(vertexShaderID);
    GL20.glDeleteShader(fragmentShaderID);
    GL20.glDeleteProgram(programID);
}
 
开发者ID:Essentria,项目名称:Elgin-Plant-Game,代码行数:12,代码来源:ShaderProgram.java

示例8: close

import org.lwjgl.opengl.GL20; //导入方法依赖的package包/类
@Override
public void close() throws Exception
{
	GL20.glDeleteProgram(this.handle);
	this.handle = 0;

	PROGRAMS.remove(this);
}
 
开发者ID:andykuo1,项目名称:candlelight,代码行数:9,代码来源:Program.java

示例9: link

import org.lwjgl.opengl.GL20; //导入方法依赖的package包/类
public Program link(Shader... shaders)
{
	for (int i = 0; i < shaders.length; ++i)
	{
		GL20.glAttachShader(this.handle, shaders[i].handle());
	}
	GL20.glLinkProgram(this.handle);

	int status = GL20.glGetProgrami(this.handle, GL20.GL_LINK_STATUS);
	if (status == GL11.GL_FALSE)
	{
		String infolog = GL20.glGetProgramInfoLog(this.handle);
		GL20.glDeleteProgram(this.handle);
		this.handle = 0;

		throw new GLException(infolog);
	}

	for (int i = 0; i < shaders.length; ++i)
	{
		GL20.glDetachShader(this.handle, shaders[i].handle());
	}

	this.attribs = this.fetchAttribs();
	Uniform[] uniforms = this.fetchUniforms();
	for(Uniform uniform : uniforms)
	{
		this.uniforms.put(uniform.name, uniform);
	}

	return this;
}
 
开发者ID:andykuo1,项目名称:candlelight,代码行数:33,代码来源:Program.java

示例10: deleteShaderProgram

import org.lwjgl.opengl.GL20; //导入方法依赖的package包/类
public void deleteShaderProgram() {
	GL15.glDeleteBuffers(vbo);
	GL20.glDetachShader(shaderProgram, vshader);
	GL20.glDetachShader(shaderProgram, fshader);
	GL20.glDeleteShader(vshader);
	vshader = 0;
	GL20.glDeleteShader(fshader);
	fshader = 0;
	GL20.glDeleteProgram(shaderProgram);
	shaderProgram = 0;
}
 
开发者ID:shaunlebron,项目名称:flex-fov,代码行数:12,代码来源:Shader.java

示例11: dispose

import org.lwjgl.opengl.GL20; //导入方法依赖的package包/类
public void dispose()
{
	unbind();
	GL20.glDetachShader(program, vertex);
	GL20.glDetachShader(program, fragment);
	GL20.glDeleteShader(vertex);
	GL20.glDeleteShader(fragment);
	GL20.glDeleteProgram(program);
}
 
开发者ID:ComunityEngine,项目名称:CommunityEngine-Java,代码行数:10,代码来源:Shader.java

示例12: cleanUp

import org.lwjgl.opengl.GL20; //导入方法依赖的package包/类
public void cleanUp() {
	stop();
	GL20.glDetachShader(programID, vertexShaderID);
	GL20.glDetachShader(programID, fragmentShaderID);
	GL20.glDeleteShader(vertexShaderID);
	GL20.glDeleteShader(fragmentShaderID);
	GL20.glDeleteProgram(programID);
}
 
开发者ID:DevipriyaSarkar,项目名称:Terrain,代码行数:9,代码来源:ShaderProgram.java

示例13: cleanUp

import org.lwjgl.opengl.GL20; //导入方法依赖的package包/类
public void cleanUp() {
	GL20.glUseProgram(0);
	GL20.glDeleteProgram(programID);
}
 
开发者ID:TheThinMatrix,项目名称:LowPolyWater,代码行数:5,代码来源:ShaderProgram.java

示例14: cleanUp

import org.lwjgl.opengl.GL20; //导入方法依赖的package包/类
public void cleanUp() {
	stop();
	GL20.glDeleteProgram(programID);
}
 
开发者ID:TheThinMatrix,项目名称:OpenGL-Animation,代码行数:5,代码来源:ShaderProgram.java

示例15: cleanUp

import org.lwjgl.opengl.GL20; //导入方法依赖的package包/类
public void cleanUp() {
    GL20.glUseProgram(0);
    GL20.glDeleteProgram(programID);
}
 
开发者ID:GryPLOfficial,项目名称:EcoSystem-Official,代码行数:5,代码来源:ShaderProgram.java


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