Re: OpenGL-ES

Brian Paul <[email protected]> Tue, 12 Oct 2004 09:26:24 -0600
Newsgroups gmane.comp.graphics.chromium.devel
Message-ID <[email protected]>
I'm really swamped this week and won't have time to look at this in 
detail for probably a couple of weeks (out of town next week).  A few 
quick comments below:


James Amendolagine wrote:
> On Thu, 2004-09-16 at 13:21, Brian Paul wrote:
> 
>>OpenGL-ES also defines an API for pixelformat/drawable/context 
>>management (like GLX or WGL) called "EGS": 
>>http://www.khronos.org/cgi-bin/fetch/fetch.cgi?egl_1_1
>>
> 
> 
> OK, I've done a first pass at an ES version of chromium. 
> 
> 
> I've kept notes on the files that required modification: 
> -glapi_parser/APIspec.txt  
> -opengl_stub/defs.py
> -state_tracker/state_buffer.txt 
> -state_tracker/state_special
> -state_tracker/state_attrib.c    
> -state_tracker/state_buffer.c
> -state_tracker/state_get.txt
> -include/state/cr_buffer.h
> -include/state/cr_attrib.h
> -state_tracker/state_fog.c
> -state_tracker/state_get.py
> -state_tracker/state_lighting.c
> -state_tracker/state_line.c
> -state_tracker/state_point.c
> -state_tracker/state_polygon.c
> -state_tracker/state_texture.c
> -state_tracker/state_transform.c
> -packer/packer.def -- also needs some mod
> 
> -glapi_parser/apiutil.py:    // added the type    'GLclampx': 4,
> -glapi_parser/apiutil.py:    // added the type    'GLfixed': 4,
> -progs/packer/packertest.py: 'GLfixed':    ('%d','int'),
> -spu/printspu/printspu.h, printspu_matrices.c ... 
> -packer/packer_special
> 
> -include/cr_estypes.h // added this file
> 
> -packer test makefile needed to add an entry for pakerteset600 .. 625
>    needed to edit packertest.py to handle a GLfixed params and GLfixed 
> 
> 
> 
> Changes to the APIspec.txt file along the lines of this: 
> 
> -----------------------------------------------------------
> ###############################################
> #  ESification
> ###############################################
> name		Frustumf
> return		void
> param		left		GLfloat
> paramlist	left		-1.0
> param		right		GLfloat
> paramlist	right		1.0
> param		bottom		GLfloat
> paramlist	bottom		-1.0
> param		top		GLfloat
> paramlist	top		1.0
> param		zNear		GLfloat
> paramlist	zNear		1.0
> param		zFar		GLfloat
> paramlist	zFar		10.0
> category	1.0

The category for all these functions should probably be something new, 
like "ES-1.0".  I think this field is significant in one or two of the 
Python code generator scripts.



> I've seperated the EGL work from the ES work by adding an ES
> functionality wrapper to the Mesa- OpenGL library on my system -- So
> OpenGL on my system now looks like GL + GLES. 

I think I've heard of a few OpenGL / OpenGL ES wrappers being in 
existance.  Have you looked at any of those.


> I did a sanity test on all of the GLES calls now in Chromium by building
> a test application that does drawing using each ES call. This now works
> through the chromium system. 

What kind of Chromium configuration did you test with?

-Brian


-------------------------------------------------------
This SF.net email is sponsored by: IT Product Guide on ITManagersJournal
Use IT products in your business? Tell us what you think of them. Give us
Your Opinions, Get Free ThinkGeek Gift Certificates! Click to find out more
http://productguide.itmanagersjournal.com/guidepromo.tmpl