Пример #1
0
        public void viewport(GLint x, GLint y, GLsizei width, GLsizei height)
        {
            string script = ScriptBuilder.Build(
                ScriptBuilder.Script(
                    "{0}.viewport({1},{2},{3},{4});"
                    ),
                Script.GetObject(API.id),
                x, y, width, height
                );

            API.ExecuteJavaScript(script);
        }
Пример #2
0
 public static extern Boolean glAreTexturesResident(GLsizei n, [MarshalAs(UnmanagedType.LPArray)]uint[] textures, [MarshalAs(UnmanagedType.LPArray)]Boolean[] residences);
Пример #3
0
    //-----------------------------------------------------------------------------
    // Purpose: Outputs the string in message to debugging output.
    //          All other parameters are ignored.
    //          Does not return any meaningful value or reference.
    //-----------------------------------------------------------------------------
    //C++ TO C# CONVERTER TODO TASK: The #define macro 'APIENTRY' was defined in multiple preprocessor conditionals and cannot be replaced in-line:
//C++ TO C# CONVERTER NOTE: APIENTRY is not available in C#:
//ORIGINAL LINE: void APIENTRY DebugCallback(GLenum source, GLenum type, GLuint id, GLenum severity, GLsizei length, const sbyte* message, const object* userParam)
    public static void DebugCallback(GLenum source, GLenum type, GLuint id, GLenum severity, GLsizei length, string message, object userParam)
    {
        dprintf("GL Error: %s\n", message);
    }
 public static extern void FramebufferTextureMultiviewOVR(GLenum target, GLenum attachment, GLuint texture, GLint level, GLint baseViewIndex, GLsizei numViews);
 public static extern void TexStorage3D(GLenum target, GLsizei levels, GLenum internalformat, GLsizei width, GLsizei height, GLsizei depth);
 public static extern void DeleteTextures(GLsizei n, [Out] GLuint[] textures);