OpenGL (porting)
OpenGL (porting)
I've been looking through the sources of OpenGL and TinyGL today, and apart from the memory requirements (malloc, calloc and free etc) in memory.c, i cannot find anything else that i would need to port. Obviously i am missing something, as there must be routines for printing pixels and so forth, but i cannot find them. Can anybody help?
+ i was also wondering if anybody had OpenGL working with their operating systems here, did you have any difficulties? find it easy/hard/impossible? im interested really, as it's something that's been in my design goals the whole time.
+ i was also wondering if anybody had OpenGL working with their operating systems here, did you have any difficulties? find it easy/hard/impossible? im interested really, as it's something that's been in my design goals the whole time.
Re: OpenGL (porting)
I think you must write drivers for graphics cards.lukem95 wrote:I've been looking through the sources of OpenGL and TinyGL today, and apart from the memory requirements (malloc, calloc and free etc) in memory.c, i cannot find anything else that i would need to port. Obviously i am missing something, as there must be routines for printing pixels and so forth, but i cannot find them. Can anybody help?
+ i was also wondering if anybody had OpenGL working with their operating systems here, did you have any difficulties? find it easy/hard/impossible? im interested really, as it's something that's been in my design goals the whole time.
However TinyGL is a software only implementation, so you need only to change video modes and to give the framebuffer address to TinyGL
And...I recommend to see Gallium3D
Rewriting virtual memory manager - Working on ELF support - Working on Device Drivers Handling
http://sourceforge.net/projects/jeko - Jeko Operating System
http://sourceforge.net/projects/jeko - Jeko Operating System
Re: OpenGL (porting)
Huh? OpenGL is a specification and thus has no source code. Do you mean GLUT?lukem95 wrote:I've been looking through the sources of OpenGL
Re: OpenGL (porting)
GLUT provides most of the 'system level IO', so that's where you're gonna want to look for that. It's a separate library, by the way.
C8H10N4O2 | #446691 | Trust the nodes.
Re: OpenGL (porting)
I think he's talking of sources of the simple implementation of OpenGLcyr1x wrote:Huh? OpenGL is a specification and thus has no source code. Do you mean GLUT?lukem95 wrote:I've been looking through the sources of OpenGL
http://oss.sgi.com/projects/ogl-sample/
Rewriting virtual memory manager - Working on ELF support - Working on Device Drivers Handling
http://sourceforge.net/projects/jeko - Jeko Operating System
http://sourceforge.net/projects/jeko - Jeko Operating System
- Brynet-Inc
- Member
- Posts: 2426
- Joined: Tue Oct 17, 2006 9:29 pm
- Libera.chat IRC: brynet
- Location: Canada
- Contact:
Re: OpenGL (porting)
Why not look at http://mesa3d.org/ ?
It has ports to several architectures/operating systems.. and it does software rendering.
It has ports to several architectures/operating systems.. and it does software rendering.
Re: OpenGL (porting)
Gallium3D is the best implementation. In fact Gallium3D will support several architectures/operating systems and several APIs (yes, also Direct3D )Brynet-Inc wrote:Why not look at http://mesa3d.org/ ?
It has ports to several architectures/operating systems.. and it does software rendering.
Gallium3D will be the standard for Linux graphics.
Rewriting virtual memory manager - Working on ELF support - Working on Device Drivers Handling
http://sourceforge.net/projects/jeko - Jeko Operating System
http://sourceforge.net/projects/jeko - Jeko Operating System
- Combuster
- Member
- Posts: 9301
- Joined: Wed Oct 18, 2006 3:45 am
- Libera.chat IRC: [com]buster
- Location: On the balcony, where I can actually keep 1½m distance
- Contact:
Re: OpenGL (porting)
*will support* implies *does not support*
I have yet to see what this actually becomes.
I have yet to see what this actually becomes.
Re: OpenGL (porting)
Yes, but I think Gallium3D will really be a standard.Combuster wrote:*will support* implies *does not support*
I have yet to see what this actually becomes.
It's the new branch of Mesa. There are yet drivers that support the new API.
Gallium3D will be a small layer than Mesa, so it will be simpler to port to other platforms or other graphics API.
It supports the new DRI2 (Direct Rendering Interface 2).
I think Gallium3D could be the right choice within many OpenGL and Graphics Libraries implementations.
However Gallium3D will be the new Mesa3D.
If he must port an OpenGL library now, he must choose Mesa3D (or other).
But, seeing that (at least I think) lukem will port OpenGL to his OS not now, he can choose the new Gallium3D.
Rewriting virtual memory manager - Working on ELF support - Working on Device Drivers Handling
http://sourceforge.net/projects/jeko - Jeko Operating System
http://sourceforge.net/projects/jeko - Jeko Operating System
Re: OpenGL (porting)
yeah sorry, i was talking about that. so basically i need to look into FreeGLUT, ok well that's a startJeko wrote:I think he's talking of sources of the simple implementation of OpenGLcyr1x wrote:Huh? OpenGL is a specification and thus has no source code. Do you mean GLUT?lukem95 wrote:I've been looking through the sources of OpenGL
http://oss.sgi.com/projects/ogl-sample/
EDIT: freeGLUT sucked, but the proper source for GLUT seems quite nice, although it's going to take a while to port. My TODO list for functions is already on about 40