Jump to content

  • Log In with Google      Sign In   
  • Create Account

looking for GLUT replacement


Old topic!
Guest, the last post of this topic is over 60 days old and at this point you may not reply in this topic. If you wish to continue this conversation start a new topic.

  • You cannot reply to this topic
23 replies to this topic

#1 Seriema   Members   -  Reputation: 632

Like
0Likes
Like

Posted 06 June 2005 - 01:56 AM

I'm looking for a very small and lightweight OpenGL framework, like GLUT. Anyone heard of what I'm looking for? *hopes* Or have missed something in the libriares I've checked? :) I want:
  • Easy OpenGL window creation (only need 1 window).
  • Lightweight.
  • A right-click context menu, like in GLUT.
  • Keyboard support
  • Mouse support
  • Cross plattform
I do not want:
  • Have to resort to globals.
  • Sound support (although I don't care if it's there).
Those I've seen so far:
  • FreeGLUT - still have to use globals to pass data to callback funcs.
  • GLFW - doesn't have a context menu.
  • SDL - kinda big for my needs & doesn't have a context menu.
  • wxWidgets - really big (not lightweight) for my needs & I would have to make everything myself.
Currently not verified:
  • Ghost - a standalone Blender lib
  • Cpw
  • AllegroGL - although Allegro is a bit big, just like SDL.
  • NGL - seems big, but has a flexible window system allowing context menus
  • OGLWFW
I checked through this list to no avail. The library I choose is going to be wrapped to become my basic rendering framework. I'll be using it for some simple render technique demos and I decided that a context menu is the simplest and nicest way to switch between techniquer per demo. [Edited by - Seriema on July 13, 2005 2:20:56 PM]
[ ThumbView: Adds thumbnail support for DDS, PCX, TGA and 16 other imagetypes for Windows XP Explorer. ] [ Chocolate peanuts: Brazilian recipe for home made chocolate covered peanuts. Pure coding pleasure. ]

Sponsor:

#2 ff8   Members   -  Reputation: 133

Like
0Likes
Like

Posted 06 June 2005 - 02:15 AM


[google]

[Edited by - ff8 on June 6, 2005 4:15:32 PM]

#3 Seriema   Members   -  Reputation: 632

Like
0Likes
Like

Posted 06 June 2005 - 02:25 AM

ff8: and how do you think I found FreeGLUT and GLFW?

moving on...
[ ThumbView: Adds thumbnail support for DDS, PCX, TGA and 16 other imagetypes for Windows XP Explorer. ] [ Chocolate peanuts: Brazilian recipe for home made chocolate covered peanuts. Pure coding pleasure. ]

#4 ff8   Members   -  Reputation: 133

Like
0Likes
Like

Posted 06 June 2005 - 02:36 AM

check this one Here! from goolge

#5 Seriema   Members   -  Reputation: 632

Like
0Likes
Like

Posted 06 June 2005 - 03:07 AM

ff8, thx for the link!

Quote:

ghost doc
Because GHOST is a replacement for GLUT, it is able to handle all of the GLUT requirements which arise in Blender. These include:

* Timer management.
* Display / window management (only on the main display).
* Event management.
* Cursor shape management (currently no custom cursors).
* Access to mouse buttons, mouse wheel, and keyboard information.



They don't mention the context menu, but I know Blender has em. Couldn't find anything on context menus in the help file. I'm gonna check some more but I sure hope it has it :D

It also seems to have a tendency for globals, because you can't pass your own objects to their callbacks. Or have I misread something?
[ ThumbView: Adds thumbnail support for DDS, PCX, TGA and 16 other imagetypes for Windows XP Explorer. ] [ Chocolate peanuts: Brazilian recipe for home made chocolate covered peanuts. Pure coding pleasure. ]

#6 GamerSg   Members   -  Reputation: 378

Like
0Likes
Like

Posted 06 June 2005 - 04:11 AM

Well if it wasnt for the context menu, GLFW would be your best choice. If you really need it, is it not possible to do a simple context menu class drawn using GL_QUADS? Shouldnt be too difficult to implement, or you could use a OpenGL based GUI library(GLUi, etc...).

#7 nurbsway   Members   -  Reputation: 144

Like
0Likes
Like

Posted 06 June 2005 - 04:35 AM


try ngl / nui


http://home.gna.org/ngl/news.html

(if you have problems, with ngl 0.8 compilation, try 7.9 work great for me).

#8 Seriema   Members   -  Reputation: 632

Like
0Likes
Like

Posted 06 June 2005 - 05:45 AM

Quote:
Original post by GamerSg
Well if it wasnt for the context menu, GLFW would be your best choice. If you really need it, is it not possible to do a simple context menu class drawn using GL_QUADS? Shouldnt be too difficult to implement, or you could use a OpenGL based GUI library(GLUi, etc...).


Hmm yeah a rendered context menu would work. But what I'm looking for isn't terrible advanced since GLUT has it, so it surprises me that no other OpenGL framework has done something equal.

Quote:
Original post by nurbsway
try ngl / nui


That seems like a full blown library. Couldn't find a context menu in the docs though, did I miss it?

*updates original post*

[Edited by - Seriema on June 6, 2005 1:45:20 PM]
[ ThumbView: Adds thumbnail support for DDS, PCX, TGA and 16 other imagetypes for Windows XP Explorer. ] [ Chocolate peanuts: Brazilian recipe for home made chocolate covered peanuts. Pure coding pleasure. ]

#9 nurbsway   Members   -  Reputation: 144

Like
0Likes
Like

Posted 06 June 2005 - 07:51 AM


for the contextual menu you have to create it by composing the elements you want with a nuiWindow (you can show or hide this window by calling the method "SetVisible( bool Visible)" ).

example, if you want to show you contextual menu, after a right click, you have to test if their is a click by overloading the methode nuiMainWindow::onMouseClick(int X, int Y, nglMouseFlags Button) and then call your nuiWindow SetVisible methode.


hope that's clear

#10 Seriema   Members   -  Reputation: 632

Like
0Likes
Like

Posted 06 June 2005 - 02:52 PM

That sounds pretty nifty actually =) I'll be checking in to it. It seems like a good demo library all in all. It differs from my initial goal of only having a Init Window + OGL + keyboard + mouse and making the rest myself. But in a good way, I just have to drop some ego if I'm gonna use it hehe
[ ThumbView: Adds thumbnail support for DDS, PCX, TGA and 16 other imagetypes for Windows XP Explorer. ] [ Chocolate peanuts: Brazilian recipe for home made chocolate covered peanuts. Pure coding pleasure. ]

#11 nurbsway   Members   -  Reputation: 144

Like
0Likes
Like

Posted 07 June 2005 - 09:19 AM


there is a irc channel on freenode about ngl / nui.

irc.freenode.net
#ngl

that's a great help.

#12 Seriema   Members   -  Reputation: 632

Like
0Likes
Like

Posted 08 June 2005 - 02:42 AM

Thx for the help guys. I'll be checking these out during the weekend (or so I hope)!

If anyone knows any more frameworks or sees a error in my conclusions, please let me know.
[ ThumbView: Adds thumbnail support for DDS, PCX, TGA and 16 other imagetypes for Windows XP Explorer. ] [ Chocolate peanuts: Brazilian recipe for home made chocolate covered peanuts. Pure coding pleasure. ]

#13 rick_appleton   Members   -  Reputation: 857

Like
0Likes
Like

Posted 08 June 2005 - 07:52 AM

A not very shameless self pimp: Daedalus (in my sig) I know we spoke over PM, but maybe someone else will come along with the same question :D

#14 Anonymous Poster_Anonymous Poster_*   Guests   -  Reputation:

0Likes

Posted 18 June 2005 - 02:33 AM

Quote:
Original post by nurbsway

try ngl / nui


http://home.gna.org/ngl/news.html

(if you have problems, with ngl 0.8 compilation, try 7.9 work great for me).


I have been using NUI/NGL for a private project, too.
If you are having ANY issues with compilation make sure to get the latest version from CVS, the CVS version is usually much more up2date than the downloadable snapshots, there's also plenty of new stuff available from CVS (i.e. support to render flash movies (SWF) in openGL etc.)





#15 Anonymous Poster_Anonymous Poster_*   Guests   -  Reputation:

0Likes

Posted 21 June 2005 - 10:24 AM

I like CPW, but I'm not sure how it fits in your list.

It can handle KB and mouse input, and create windows (even make them fullscreen) with ease. I don't think it has any kind of UI, so it won't work on that front.

It's powerful, but not monsterous and overbearing. It's worked for my applications, and I at least recommend checking it out.

#16 phantom   Moderators   -  Reputation: 7279

Like
0Likes
Like

Posted 21 June 2005 - 10:41 AM

i note you have my OGLWFW on there, there isnt much point in you looking at it as it doesnt have any support for keyboard,mouse or right click menus and its currently not crossplatform (work in progress) [smile]

keyboard and mouse support might well be added via window messages at a later date but menu support certainly wont be added as its geared more towards making games than anything else so expects the GUI to be OpenGL rendered.

#17 nurbsway   Members   -  Reputation: 144

Like
0Likes
Like

Posted 26 June 2005 - 05:30 PM

Quote:

I have been using NUI/NGL for a private project, too.
If you are having ANY issues with compilation make sure to get the latest version from CVS, the CVS version is usually much more up2date than the downloadable snapshots, there's also plenty of new stuff available from CVS (i.e. support to render flash movies (SWF) in openGL etc.)



what I talk about was a probleme with my zlib version. (I work with the bundle).

If you use the cvs version, just change ngl and nui directories in the bundle.

and there 's also a mailling list if you encounter a problem.

[Edited by - nurbsway on June 29, 2005 12:30:32 AM]

#18 Hexed   Members   -  Reputation: 175

Like
0Likes
Like

Posted 10 July 2005 - 02:44 PM

If GLUT does what you want, what else do you need. Just wondering.

#19 JavaCoolDude   Members   -  Reputation: 670

Like
0Likes
Like

Posted 10 July 2005 - 03:30 PM

I hate to go around promoting my personal stuff, but I happen to be on the verge of releasing my SXML engine 0.9 which has built-in support for:
Shaders
GUI
Texture Manager
Geometry Manager
Folder path Manager
Scenegraph hierarchy
etc...

Here's what a simple window setup file looks like:

<SceneFrame>
<MediaFolder path = "Data/Textures/" />
<MediaFolder path = "Data/Shaders/" />
<MediaFolder path = "Data/Models/" />

<MediaFolder path = "Data/XML/" />
<MediaFolder path = "Data/GUI/" />

<Window title = "GUI Test">

<DisplayMode colorDepth = "32"
fullscreen = "false"
centered = "true"
height = "600"
width = "800"
x = "0"
y = "0" />

<GUIPanel path = "GUILayout.xml" />

<GLCaps accumulation = "0"
doubleBuffer = "true"
samples = "16"
stencil = "0"
vsync = "false"
alpha = "0"
depth = "24"
color = "32" />
</Window>

<Benchmark logFilePath = "Results.xml"
duration = "10.0"
enabled = "false" />

</SceneFrame>





I should release a new demo soon as well as few tutorials, let me know if you're interested :)

#20 Hexed   Members   -  Reputation: 175

Like
0Likes
Like

Posted 10 July 2005 - 03:36 PM

javacooldude, sound interesting, link?




Old topic!
Guest, the last post of this topic is over 60 days old and at this point you may not reply in this topic. If you wish to continue this conversation start a new topic.



PARTNERS