//-------------------------------------------------------------- void ofShader::setAttribute2s(GLint location, short v1, short v2) const{ if(bLoaded) glVertexAttrib2s(location, v1, v2); }
void ShaderProgram::setAttribute(GLint index, GLshort v1, GLshort v2) { glVertexAttrib2s(index, v1, v2); }
void shader_gl3::attribute(const char* name, const short& arg1, const short& arg2) const { A2E_CHECK_ATTRIBUTE_EXISTENCE(name); A2E_CHECK_ATTRIBUTE_TYPE(name, GL_FLOAT_VEC2); glVertexAttrib2s(A2E_SHADER_GET_ATTRIBUTE_POSITION(name), arg1, arg2); }
void GlShaderProgram::setAttributeVec2Int(const std::string &variableName, const int i1, const int i2) { GLint loc = getAttributeVariableLocation(variableName); glVertexAttrib2s(loc, i1, i2); }
JNIEXPORT void JNICALL Java_org_lwjgl_opengl_GL20_nglVertexAttrib2s(JNIEnv *env, jclass clazz, jint index, jshort x, jshort y, jlong function_pointer) { glVertexAttrib2sPROC glVertexAttrib2s = (glVertexAttrib2sPROC)((intptr_t)function_pointer); glVertexAttrib2s(index, x, y); }