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


C# WebGLProgram类代码示例

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


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

示例1: GetUniformLocation

 /// <summary>
 /// Returns a WebGLUniformLocation object for the location of a uniform variable within a WebGLProgram object.
 ///
 /// Errors:
 ///     gl.INVALID_VALUE        If program is not generated by WebGL.
 ///
 ///     gl.INVALID_OPERATION    If program is not a program object.
 ///                             if program isn't successfully linked.
 /// </summary>
 /// <param name="program">The program object to query.</param>
 /// <param name="name">A string containing the name of the uniform variable. </param>
 /// <returns>The WebGLUniformLocation for the name. Returns null if a WebGL error occurs or if name starts with a reserved WebGL prefix.</returns>
 public virtual WebGLUniformLocation GetUniformLocation(WebGLProgram program, string name)
 {
     return null;
 }
开发者ID:configit-open-source,项目名称:Frameworks,代码行数:16,代码来源:RenderingContextMethods.cs

示例2: isProgram

 public bool isProgram(WebGLProgram program) { return default(bool); }
开发者ID:fjgandrade,项目名称:sharpkit,代码行数:1,代码来源:WebGLRenderingContext.cs

示例3: useProgram

 public void useProgram(WebGLProgram program) { }
开发者ID:fjgandrade,项目名称:sharpkit,代码行数:1,代码来源:WebGLRenderingContext.cs

示例4: getProgramParameter

 public object getProgramParameter(WebGLProgram program, int pname) { return default(object); }
开发者ID:fjgandrade,项目名称:sharpkit,代码行数:1,代码来源:WebGLRenderingContext.cs

示例5: getUniform

 public object getUniform(WebGLProgram program, WebGLUniformLocation location) { return default(object); }
开发者ID:fjgandrade,项目名称:sharpkit,代码行数:1,代码来源:WebGLRenderingContext.cs

示例6: getActiveAttrib

 public WebGLActiveInfo getActiveAttrib(WebGLProgram program, int index) { return default(WebGLActiveInfo); }
开发者ID:fjgandrade,项目名称:sharpkit,代码行数:1,代码来源:WebGLRenderingContext.cs

示例7: getAttachedShaders

 public WebGLObjectArray getAttachedShaders(WebGLProgram program) { return default(WebGLObjectArray); }
开发者ID:fjgandrade,项目名称:sharpkit,代码行数:1,代码来源:WebGLRenderingContext.cs

示例8: BindAttribLocation

 /// <summary>
 /// Binds a generic vertex index to a user-defined attribute variable.
 /// More than one name can be bound to the same vertex index, but multiple indexes cannot be bound to the same name.
 /// If name is a matrix attribute, then index points to the first column of the matrix. Additional matrix columns are automatically bound to index+1, index+2, and so forth based on matrix variable (mat2,mat3,mat4).
 ///
 /// Errors:
 ///     gl.INVALID_VALUE        If index is greater than or equal to gl.MAX_VERTEX_ATTRIBS.
 ///     gl.INVALID_VALUE        If program is not generated by WebGL.
 ///     gl.INVALID_OPERATION    If name starts with the reserved prefix gl_.
 ///     gl.INVALID_OPERATION    If program isn't a program object.
 /// </summary>
 /// <param name="program">Program object to bind. </param>
 /// <param name="index">The index of the generic vertex to bind. </param>
 /// <param name="name">me of the user variable to a bind to the generic vertex index.</param>
 public virtual void BindAttribLocation(WebGLProgram program, int index, string name) { }
开发者ID:configit-open-source,项目名称:Frameworks,代码行数:15,代码来源:RenderingContextMethods.cs

示例9: DetachShader

 /// <summary>
 /// Detach a shader object from a program object.
 /// If the shader is flagged for deletion by deleteShader, it's deleted after it's removed.
 /// </summary>
 /// <param name="program">The program object that contains the shader to detach. </param>
 /// <param name="shader">The shader to detach.</param>
 public virtual void DetachShader(WebGLProgram program, WebGLShader shader) { }
开发者ID:configit-open-source,项目名称:Frameworks,代码行数:7,代码来源:RenderingContextMethods.cs

示例10: ValidateProgram

 /// <summary>
 /// Returns whether a given program can run in the current WebGL state.
 /// A program is considered invalid if it hasn't successfully linked, or any two active samplers in the program are different types, but refer to the same texture image unit.
 /// This method is used in conjunction with getProgramParameter called with gl.VALIDATE_STATUS to test for a valid program.
 /// </summary>
 /// <param name="program">The program to validate.</param>
 public virtual void ValidateProgram(WebGLProgram program) { }
开发者ID:configit-open-source,项目名称:Frameworks,代码行数:7,代码来源:RenderingContextMethods.cs

示例11: DeleteProgram

 /// <summary>
 /// Flags a specific WebGLProgram object for deletion if currently active. It will be deleted when it is no longer being used. Any shader objects associated with the program will be detached. They will be deleted if they were already flagged for deletion.
 /// </summary>
 /// <param name="program">The program to be deleted.</param>
 public virtual void DeleteProgram(WebGLProgram program) { }
开发者ID:configit-open-source,项目名称:Frameworks,代码行数:5,代码来源:RenderingContextMethods.cs

示例12: UseProgram

 /// <summary>
 /// Set the program object to use for rendering.
 /// Program objects can be used for multiple rendering contexts.
 ///
 /// Errors:
 ///     gl.INVALID_OPERATION    If program hasn't been linked.
 ///                             If program isn't a WebGLProgram object, but is a WebGL generated object.
 ///
 ///     gl.INVALID_VALUE        If program isn't a WebGL generated object.
 /// </summary>
 /// <param name="program">The program object.</param>
 public virtual void UseProgram(WebGLProgram program) { }
开发者ID:configit-open-source,项目名称:Frameworks,代码行数:12,代码来源:RenderingContextMethods.cs

示例13: LinkProgram

 /// <summary>
 /// Links an attached vertex shader and an attached fragment shader to a program so it can be used by the graphics processing unit (GPU).
 /// If a link operation fails, any info associated with a previous link operation of program is lost.
 ///
 /// Errors:
 ///     gl.INVALID_VALUE         If program isn't a WebGL object type.
 ///     gl.INVALID_OPERATION    If program isn't a program object.
 /// </summary>
 /// <param name="program">The program object to link.</param>
 public virtual void LinkProgram(WebGLProgram program) { }
开发者ID:configit-open-source,项目名称:Frameworks,代码行数:10,代码来源:RenderingContextMethods.cs

示例14: IsProgram

 /// <summary>
 /// Gets state of WebGL program object. Returns true if program object is valid, false otherwise.
 /// </summary>
 /// <param name="program">The program object to query.</param>
 /// <returns>Returns true if program is valid, false otherwise.</returns>
 public virtual bool IsProgram(WebGLProgram program)
 {
     return false;
 }
开发者ID:configit-open-source,项目名称:Frameworks,代码行数:9,代码来源:RenderingContextMethods.cs

示例15: deleteProgram

 public void deleteProgram(WebGLProgram program) { }
开发者ID:fjgandrade,项目名称:sharpkit,代码行数:1,代码来源:WebGLRenderingContext.cs


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