/// <summary> /// glGetQueryObject returns in params a selected parameter of the query object specified by id. /// glGetQueryObject implicitly flushes the GL pipeline so that any incomplete rendering delimited by the occlusion query completes in finite time. /// </summary> /// <param name="QueryID">Specifies the name of a query object.</param> /// <param name="pname">Specifies the symbolic name of a query object parameter. Accepted values are GL_QUERY_RESULT or GL_QUERY_RESULT_AVAILABLE.</param> /// <returns></returns> /// <remarks> /// If an error is generated, no change is made to the contents of params. /// glGetQueryObject implicitly flushes the GL pipeline so that any incomplete rendering delimited by the occlusion query completes in finite time. /// If multiple queries are issued using the same query object id before calling glGetQueryObject, the results of the most recent query will be returned. In this case, when issuing a new query, the results of the previous query are discarded. /// glGetQueryObjecti64v and glGetQueryObjectui64v are available only if the GL version is 3.3 or greater. /// GL_QUERY_RESULT_NO_WAIT is accepted for pname only if the GL version is 4.4 or greater. /// The GL_QUERY_RESULT_BUFFER target is available only if the GL version is 4.4 or higher. On earlier versions of the GL, params is always an address in client memory. /// </remarks> public static uint GetQueryObjectuiv(uint QueryID, GetQueryObjectParameters pname) { uint tmp = 0; Delegates.glGetQueryObjectuiv(QueryID, pname, ref tmp); return(tmp); }
/// <summary> /// glGetQueryObject returns in params a selected parameter of the query object specified by id. /// glGetQueryObject implicitly flushes the GL pipeline so that any incomplete rendering delimited by the occlusion query completes in finite time. /// </summary> /// <param name="QueryID">Specifies the name of a query object.</param> /// <param name="pname">Specifies the symbolic name of a query object parameter. Accepted values are GL_QUERY_RESULT or GL_QUERY_RESULT_AVAILABLE.</param> /// <returns></returns> /// <remarks> /// If an error is generated, no change is made to the contents of params. /// glGetQueryObject implicitly flushes the GL pipeline so that any incomplete rendering delimited by the occlusion query completes in finite time. /// If multiple queries are issued using the same query object id before calling glGetQueryObject, the results of the most recent query will be returned. In this case, when issuing a new query, the results of the previous query are discarded. /// glGetQueryObjecti64v and glGetQueryObjectui64v are available only if the GL version is 3.3 or greater. /// GL_QUERY_RESULT_NO_WAIT is accepted for pname only if the GL version is 4.4 or greater. /// The GL_QUERY_RESULT_BUFFER target is available only if the GL version is 4.4 or higher. On earlier versions of the GL, params is always an address in client memory. /// </remarks> public unsafe static int GetQueryObjectiv(uint QueryID, GetQueryObjectParameters pname) { int tmp = 0; Delegates.glGetQueryObjectiv(QueryID, pname, &tmp); return(tmp); }
/// <summary> /// glGetQueryObject returns in params a selected parameter of the query object specified by id. /// glGetQueryObject implicitly flushes the GL pipeline so that any incomplete rendering delimited by the occlusion query completes in finite time. /// </summary> /// <param name="id"></param> /// <param name="pname">Specifies the symbolic name of a query object parameter. Accepted values are GL_QUERY_RESULT or GL_QUERY_RESULT_AVAILABLE.</param> /// <returns></returns> public static int GetQueryObjecti64v(uint id, GetQueryObjectParameters pname) { int tmp = 0; Delegates.glGetQueryObjecti64v(id, pname, ref tmp); return(tmp); }
/// <summary> /// glGetQueryObject returns in params a selected parameter of the query object specified by id. /// glGetQueryObject implicitly flushes the GL pipeline so that any incomplete rendering delimited by the occlusion query completes in finite time. /// </summary> /// <param name="QueryID">Specifies the name of a query object.</param> /// <param name="pname">Specifies the symbolic name of a query object parameter. Accepted values are GL_QUERY_RESULT or GL_QUERY_RESULT_AVAILABLE.</param> /// <param name="params">If no buffer is bound to GL_QUERY_RESULT_BUFFER, then params is treated as an address in client memory of a variable to receive the resulting data.</param> /// <remarks> /// If an error is generated, no change is made to the contents of params. /// glGetQueryObject implicitly flushes the GL pipeline so that any incomplete rendering delimited by the occlusion query completes in finite time. /// If multiple queries are issued using the same query object id before calling glGetQueryObject, the results of the most recent query will be returned. In this case, when issuing a new query, the results of the previous query are discarded. /// glGetQueryObjecti64v and glGetQueryObjectui64v are available only if the GL version is 3.3 or greater. /// GL_QUERY_RESULT_NO_WAIT is accepted for pname only if the GL version is 4.4 or greater. /// The GL_QUERY_RESULT_BUFFER target is available only if the GL version is 4.4 or higher. On earlier versions of the GL, params is always an address in client memory. /// </remarks> public static void GetQueryObjectuiv(uint QueryID, GetQueryObjectParameters pname, uint[] @params) { Delegates.glGetQueryObjectuiv(QueryID, pname, ref @params[0]); }
/// <summary> /// glGetQueryObject returns in params a selected parameter of the query object specified by id. /// glGetQueryObject implicitly flushes the GL pipeline so that any incomplete rendering delimited by the occlusion query completes in finite time. /// </summary> /// <param name="QueryID">Specifies the name of a query object.</param> /// <param name="pname">Specifies the symbolic name of a query object parameter. Accepted values are GL_QUERY_RESULT or GL_QUERY_RESULT_AVAILABLE.</param> /// <param name="params">If no buffer is bound to GL_QUERY_RESULT_BUFFER, then params is treated as an address in client memory of a variable to receive the resulting data.</param> /// <remarks> /// If an error is generated, no change is made to the contents of params. /// glGetQueryObject implicitly flushes the GL pipeline so that any incomplete rendering delimited by the occlusion query completes in finite time. /// If multiple queries are issued using the same query object id before calling glGetQueryObject, the results of the most recent query will be returned. In this case, when issuing a new query, the results of the previous query are discarded. /// glGetQueryObjecti64v and glGetQueryObjectui64v are available only if the GL version is 3.3 or greater. /// GL_QUERY_RESULT_NO_WAIT is accepted for pname only if the GL version is 4.4 or greater. /// The GL_QUERY_RESULT_BUFFER target is available only if the GL version is 4.4 or higher. On earlier versions of the GL, params is always an address in client memory. /// </remarks> public unsafe static void GetQueryObjectiv(uint QueryID, GetQueryObjectParameters pname, int[] @params) { //Delegates.glGetQueryObjectiv(QueryID, pname, ref @params[0]); fixed(int *ptr = & @params[0]) Delegates.glGetQueryObjectiv(QueryID, pname, ptr); }
/// <summary> /// glGetQueryObject returns in params a selected parameter of the query object specified by id. /// glGetQueryObject implicitly flushes the GL pipeline so that any incomplete rendering delimited by the occlusion query completes in finite time. /// </summary> /// <param name="QueryID">Specifies the name of a query object.</param> /// <param name="pname">Specifies the symbolic name of a query object parameter. Accepted values are GL_QUERY_RESULT or GL_QUERY_RESULT_AVAILABLE.</param> /// <returns></returns> /// <remarks> /// If an error is generated, no change is made to the contents of params. /// glGetQueryObject implicitly flushes the GL pipeline so that any incomplete rendering delimited by the occlusion query completes in finite time. /// If multiple queries are issued using the same query object id before calling glGetQueryObject, the results of the most recent query will be returned. In this case, when issuing a new query, the results of the previous query are discarded. /// glGetQueryObjecti64v and glGetQueryObjectui64v are available only if the GL version is 3.3 or greater. /// GL_QUERY_RESULT_NO_WAIT is accepted for pname only if the GL version is 4.4 or greater. /// The GL_QUERY_RESULT_BUFFER target is available only if the GL version is 4.4 or higher. On earlier versions of the GL, params is always an address in client memory. /// </remarks> public static uint GetQueryObjectuiv(uint QueryID, GetQueryObjectParameters pname) { uint tmp = 0; Delegates.glGetQueryObjectuiv(QueryID, pname, ref tmp); return tmp; }
//ARB_timer_query /// <summary> /// glGetQueryObject returns in params a selected parameter of the query object specified by id. /// glGetQueryObject implicitly flushes the GL pipeline so that any incomplete rendering delimited by the occlusion query completes in finite time. /// </summary> /// <param name="id">Specifies the name of a query object.</param> /// <param name="pname">Specifies the symbolic name of a query object parameter. Accepted values are GL_QUERY_RESULT or GL_QUERY_RESULT_AVAILABLE.</param> /// <param name="params"></param> /// <remarks> /// /// If an error is generated, no change is made to the contents of params. /// glGetQueryObject implicitly flushes the GL pipeline so that any incomplete rendering delimited by the occlusion query completes in finite time. /// If multiple queries are issued using the same query object id before calling glGetQueryObject, the results of the most recent query will be returned. In this case, when issuing a new query, the results of the previous query are discarded. /// glGetQueryObjecti64v and glGetQueryObjectui64v are available only if the GL version is 3.3 or greater. /// GL_QUERY_RESULT_NO_WAIT is accepted for pname only if the GL version is 4.4 or greater /// The GL_QUERY_RESULT_BUFFER target is available only if the GL version is 4.4 or higher. On earlier versions of the GL, params is always an address in client memory. /// </remarks> public static void GetQueryObjecti64v(uint id, GetQueryObjectParameters pname, int[] @params) { Delegates.glGetQueryObjecti64v(id, pname, ref @params[0]); }
/// <summary> /// glGetQueryObject returns in params a selected parameter of the query object specified by id. /// glGetQueryObject implicitly flushes the GL pipeline so that any incomplete rendering delimited by the occlusion query completes in finite time. /// </summary> /// <param name="QueryID">Specifies the name of a query object.</param> /// <param name="pname">Specifies the symbolic name of a query object parameter. Accepted values are GL_QUERY_RESULT or GL_QUERY_RESULT_AVAILABLE.</param> /// <returns></returns> /// <remarks> /// If an error is generated, no change is made to the contents of params. /// glGetQueryObject implicitly flushes the GL pipeline so that any incomplete rendering delimited by the occlusion query completes in finite time. /// If multiple queries are issued using the same query object id before calling glGetQueryObject, the results of the most recent query will be returned. In this case, when issuing a new query, the results of the previous query are discarded. /// glGetQueryObjecti64v and glGetQueryObjectui64v are available only if the GL version is 3.3 or greater. /// GL_QUERY_RESULT_NO_WAIT is accepted for pname only if the GL version is 4.4 or greater. /// The GL_QUERY_RESULT_BUFFER target is available only if the GL version is 4.4 or higher. On earlier versions of the GL, params is always an address in client memory. /// </remarks> public unsafe static int GetQueryObjectiv(uint QueryID, GetQueryObjectParameters pname) { int tmp = 0; Delegates.glGetQueryObjectiv(QueryID, pname, &tmp); return tmp; }
/// <summary> /// glGetQueryObject returns in params a selected parameter of the query object specified by id. /// glGetQueryObject implicitly flushes the GL pipeline so that any incomplete rendering delimited by the occlusion query completes in finite time. /// </summary> /// <param name="QueryID">Specifies the name of a query object.</param> /// <param name="pname">Specifies the symbolic name of a query object parameter. Accepted values are GL_QUERY_RESULT or GL_QUERY_RESULT_AVAILABLE.</param> /// <param name="params">If no buffer is bound to GL_QUERY_RESULT_BUFFER, then params is treated as an address in client memory of a variable to receive the resulting data.</param> /// <remarks> /// If an error is generated, no change is made to the contents of params. /// glGetQueryObject implicitly flushes the GL pipeline so that any incomplete rendering delimited by the occlusion query completes in finite time. /// If multiple queries are issued using the same query object id before calling glGetQueryObject, the results of the most recent query will be returned. In this case, when issuing a new query, the results of the previous query are discarded. /// glGetQueryObjecti64v and glGetQueryObjectui64v are available only if the GL version is 3.3 or greater. /// GL_QUERY_RESULT_NO_WAIT is accepted for pname only if the GL version is 4.4 or greater. /// The GL_QUERY_RESULT_BUFFER target is available only if the GL version is 4.4 or higher. On earlier versions of the GL, params is always an address in client memory. /// </remarks> public unsafe static void GetQueryObjectiv(uint QueryID, GetQueryObjectParameters pname, int[] @params) { //Delegates.glGetQueryObjectiv(QueryID, pname, ref @params[0]); fixed(int* ptr = &@params[0]) Delegates.glGetQueryObjectiv(QueryID, pname, ptr); }
/// <summary> /// glGetQueryObject returns in params a selected parameter of the query object specified by id. /// glGetQueryObject implicitly flushes the GL pipeline so that any incomplete rendering delimited by the occlusion query completes in finite time. /// </summary> /// <param name="id"></param> /// <param name="pname">Specifies the symbolic name of a query object parameter. Accepted values are GL_QUERY_RESULT or GL_QUERY_RESULT_AVAILABLE.</param> /// <returns></returns> public static int GetQueryObjecti64v(uint id, GetQueryObjectParameters pname) { int tmp = 0; Delegates.glGetQueryObjecti64v(id, pname, ref tmp); return tmp; }