本文整理汇总了Java中org.lwjgl.opengl.ARBVertexShader.glGetAttribLocationARB方法的典型用法代码示例。如果您正苦于以下问题:Java ARBVertexShader.glGetAttribLocationARB方法的具体用法?Java ARBVertexShader.glGetAttribLocationARB怎么用?Java ARBVertexShader.glGetAttribLocationARB使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类org.lwjgl.opengl.ARBVertexShader
的用法示例。
在下文中一共展示了ARBVertexShader.glGetAttribLocationARB方法的6个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: getAttributeLocation
import org.lwjgl.opengl.ARBVertexShader; //导入方法依赖的package包/类
/**
* Returns the index for a given attribute in this {@link ShaderProgram}.
* Th program must be loaded before this method is called.
*
* @param name The name of the attribute to look up.
* @return The index of the attribute , or -1 if there was a problem.
*/
public Location getAttributeLocation(String name) {
Location output = new Location(name, false);
output.index = ARBVertexShader.glGetAttribLocationARB(shaderprog, name);
locations.put(name, output);
return output;
}
示例2: glGetAttribLocation
import org.lwjgl.opengl.ARBVertexShader; //导入方法依赖的package包/类
public static int glGetAttribLocation(int p_153164_0_, CharSequence p_153164_1_)
{
return arbShaders ? ARBVertexShader.glGetAttribLocationARB(p_153164_0_, p_153164_1_) : GL20.glGetAttribLocation(p_153164_0_, p_153164_1_);
}
示例3: glGetAttribLocation
import org.lwjgl.opengl.ARBVertexShader; //导入方法依赖的package包/类
public static int glGetAttribLocation(int program, CharSequence name)
{
return arbShaders ? ARBVertexShader.glGetAttribLocationARB(program, name) : GL20.glGetAttribLocation(program, name);
}
示例4: getAttribLoc
import org.lwjgl.opengl.ARBVertexShader; //导入方法依赖的package包/类
public int getAttribLoc(String name)
{
return ARBVertexShader.glGetAttribLocationARB(programID, name);
}
示例5: func_153164_b
import org.lwjgl.opengl.ARBVertexShader; //导入方法依赖的package包/类
public static int func_153164_b(int p_153164_0_, CharSequence p_153164_1_)
{
return field_153214_y ? ARBVertexShader.glGetAttribLocationARB(p_153164_0_, p_153164_1_) : GL20.glGetAttribLocation(p_153164_0_, p_153164_1_);
}
示例6: glGetAttribLocation
import org.lwjgl.opengl.ARBVertexShader; //导入方法依赖的package包/类
@Override
public int glGetAttribLocation(int program, String attrib) {
return ARBVertexShader.glGetAttribLocationARB(program, attrib);
}