mirror of
				https://github.com/RGBCube/serenity
				synced 2025-10-31 12:32:43 +00:00 
			
		
		
		
	LibGL: Implement glMultiTexCoord2fv(ARB)? APIs
				
					
				
			This commit is contained in:
		
							parent
							
								
									789d871892
								
							
						
					
					
						commit
						72b4f95f71
					
				
					 2 changed files with 17 additions and 5 deletions
				
			
		|  | @ -653,6 +653,8 @@ GLAPI void glTexCoord3fv(GLfloat const* v); | ||||||
| GLAPI void glTexCoord4f(GLfloat s, GLfloat t, GLfloat r, GLfloat q); | GLAPI void glTexCoord4f(GLfloat s, GLfloat t, GLfloat r, GLfloat q); | ||||||
| GLAPI void glTexCoord4fv(GLfloat const* v); | GLAPI void glTexCoord4fv(GLfloat const* v); | ||||||
| GLAPI void glMultiTexCoord2fARB(GLenum target, GLfloat s, GLfloat t); | GLAPI void glMultiTexCoord2fARB(GLenum target, GLfloat s, GLfloat t); | ||||||
|  | GLAPI void glMultiTexCoord2fvARB(GLenum target, GLfloat const* v); | ||||||
|  | GLAPI void glMultiTexCoord2fv(GLenum target, GLfloat const* v); | ||||||
| GLAPI void glMultiTexCoord2f(GLenum target, GLfloat s, GLfloat t); | GLAPI void glMultiTexCoord2f(GLenum target, GLfloat s, GLfloat t); | ||||||
| GLAPI void glTexParameteri(GLenum target, GLenum pname, GLint param); | GLAPI void glTexParameteri(GLenum target, GLenum pname, GLint param); | ||||||
| GLAPI void glTexParameterf(GLenum target, GLenum pname, GLfloat param); | GLAPI void glTexParameterf(GLenum target, GLenum pname, GLfloat param); | ||||||
|  |  | ||||||
|  | @ -631,16 +631,26 @@ void glMatrixMode(GLenum mode) | ||||||
|     g_gl_context->gl_matrix_mode(mode); |     g_gl_context->gl_matrix_mode(mode); | ||||||
| } | } | ||||||
| 
 | 
 | ||||||
| void glMultiTexCoord2f(GLenum target, GLfloat s, GLfloat t) |  | ||||||
| { |  | ||||||
|     g_gl_context->gl_multi_tex_coord(target, s, t, 0.0f, 1.0f); |  | ||||||
| } |  | ||||||
| 
 |  | ||||||
| void glMultiTexCoord2fARB(GLenum target, GLfloat s, GLfloat t) | void glMultiTexCoord2fARB(GLenum target, GLfloat s, GLfloat t) | ||||||
| { | { | ||||||
|     glMultiTexCoord2f(target, s, t); |     glMultiTexCoord2f(target, s, t); | ||||||
| } | } | ||||||
| 
 | 
 | ||||||
|  | void glMultiTexCoord2fvARB(GLenum target, GLfloat const* v) | ||||||
|  | { | ||||||
|  |     glMultiTexCoord2fv(target, v); | ||||||
|  | } | ||||||
|  | 
 | ||||||
|  | void glMultiTexCoord2fv(GLenum target, GLfloat const* v) | ||||||
|  | { | ||||||
|  |     g_gl_context->gl_multi_tex_coord(target, v[0], v[1], 0.f, 1.f); | ||||||
|  | } | ||||||
|  | 
 | ||||||
|  | void glMultiTexCoord2f(GLenum target, GLfloat s, GLfloat t) | ||||||
|  | { | ||||||
|  |     g_gl_context->gl_multi_tex_coord(target, s, t, 0.f, 1.f); | ||||||
|  | } | ||||||
|  | 
 | ||||||
| void glMultMatrixd(GLdouble const* matrix) | void glMultMatrixd(GLdouble const* matrix) | ||||||
| { | { | ||||||
|     g_gl_context->gl_mult_matrix(transpose_input_matrix<double, float>(matrix)); |     g_gl_context->gl_mult_matrix(transpose_input_matrix<double, float>(matrix)); | ||||||
|  |  | ||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue
	
	 Jelle Raaijmakers
						Jelle Raaijmakers