public Web.WebGLUniformLocation getUniformLocation(Web.WebGLProgram program, string name) { #if _DEBUG Log.Info(string.Format("getUniformLocation {0} {1}", (int)program.Value, name)); #endif var bytes = Encoding.ASCII.GetBytes(name); GlUniformLocation glUniformLocation = null; unsafe { fixed(byte *b = bytes) { glUniformLocation = new GlUniformLocation(Gl.glGetUniformLocation(program.Value, b)); } } #if _DEBUG ErrorTest(); #endif #if _DEBUG Log.Info(string.Format("value {0}", glUniformLocation.Value)); #endif return(glUniformLocation); }
public WebGLUniformLocation getUniformLocation(WebGLProgram program, string name) { var glUniformLocation = new GlUniformLocation(this.openGl.GetUniformLocation(program.Value, name)); this.ErrorTest(); return(glUniformLocation); }