mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-06 02:58:05 +02:00
dispatch: Make a header to go along with querymatrix.c.
This patch creates a header querymatrix.h, to allow functions defined
in querymatrix.c to be used from other .c files. It also switches
from the nonstandard GL_APIENTRY to GLAPIENTRY.
Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
v2: Don't declare _mesa_Get{Integer,Float}v in querymatrix.c.
Instead, just include main/get.h.
Reviewed-by: Chad Versace <chad.versace@linux.intel.com>
This commit is contained in:
parent
b60244cfb9
commit
5a1b40acf5
2 changed files with 43 additions and 9 deletions
|
|
@ -14,8 +14,9 @@
|
|||
|
||||
#include <stdlib.h>
|
||||
#include <math.h>
|
||||
#include "GLES/gl.h"
|
||||
#include "GLES/glext.h"
|
||||
#include "glheader.h"
|
||||
#include "querymatrix.h"
|
||||
#include "main/get.h"
|
||||
|
||||
|
||||
/**
|
||||
|
|
@ -88,13 +89,7 @@ fpclassify(double x)
|
|||
|
||||
#endif
|
||||
|
||||
extern GLbitfield GL_APIENTRY _es_QueryMatrixxOES(GLfixed mantissa[16], GLint exponent[16]);
|
||||
|
||||
/* The Mesa functions we'll need */
|
||||
extern void GL_APIENTRY _mesa_GetIntegerv(GLenum pname, GLint *params);
|
||||
extern void GL_APIENTRY _mesa_GetFloatv(GLenum pname, GLfloat *params);
|
||||
|
||||
GLbitfield GL_APIENTRY _es_QueryMatrixxOES(GLfixed mantissa[16], GLint exponent[16])
|
||||
GLbitfield GLAPIENTRY _es_QueryMatrixxOES(GLfixed mantissa[16], GLint exponent[16])
|
||||
{
|
||||
GLfloat matrix[16];
|
||||
GLint tmp;
|
||||
|
|
|
|||
39
src/mesa/main/querymatrix.h
Normal file
39
src/mesa/main/querymatrix.h
Normal file
|
|
@ -0,0 +1,39 @@
|
|||
/*
|
||||
* Copyright © 2012 Intel Corporation
|
||||
*
|
||||
* Permission is hereby granted, free of charge, to any person obtaining a
|
||||
* copy of this software and associated documentation files (the "Software"),
|
||||
* to deal in the Software without restriction, including without limitation
|
||||
* the rights to use, copy, modify, merge, publish, distribute, sublicense,
|
||||
* and/or sell copies of the Software, and to permit persons to whom the
|
||||
* Software is furnished to do so, subject to the following conditions:
|
||||
*
|
||||
* The above copyright notice and this permission notice (including the next
|
||||
* paragraph) shall be included in all copies or substantial portions of the
|
||||
* Software.
|
||||
*
|
||||
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
||||
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
||||
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
|
||||
* THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
||||
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
|
||||
* FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS
|
||||
* IN THE SOFTWARE.
|
||||
*/
|
||||
|
||||
#ifndef QUERYMATRIX_H
|
||||
#define QUERYMATRIX_H
|
||||
|
||||
|
||||
#include "mfeatures.h"
|
||||
#include "mtypes.h"
|
||||
|
||||
|
||||
/*
|
||||
* API functions
|
||||
*/
|
||||
|
||||
extern GLbitfield GLAPIENTRY
|
||||
_es_QueryMatrixxOES(GLfixed mantissa[16], GLint exponent[16]);
|
||||
|
||||
#endif
|
||||
Loading…
Add table
Reference in a new issue