Thomi Richards
2006-07-26 06:42:06 UTC
Hi guys,
I have a few questions regarding the CL_Surface class. I tried asking
in IRC, but everyone was AFK - I'm hoping I get a better responce
here.
I'm making a tilemap editor for a game - I want to create a surface
and draw all the tiles onto that surface, then render the entire large
surface to the screen at once.
I'm having problems because I can't figure out how to create a
CL_Surface with a fixed size. It has get_width() and get_height()
methods, but no set_width() and set_height() methods. How can I set
the size of a surface!??
I guess what I'm after is a generic "graphic surface" class - one that
will let me set it's size, copy things to and from it in an easy
manner...
Am I using the right class? I also investigated CL_Canvas and
CL_PixelBuffer, but they didn't seem to be what I want..
I'm very impressed with ClanLib in general, but the docs *really* need
updating. There are so many classes with little or no documentation...
The output format of the docs are also really strange... For example,
CL_Keyboard::get_keycode() is a static method, but it doesn't say that
in the API reference *anywhere*... You have to guess. Same goes for
CL_Display and CL_Mouse and probably more that I have yet to "guess".
ClanLib has some great functionality, but without the documentation to
back it up it's very hard to learn and use.
I'm more than willing to work on improving the documentation - I've
already submitted a few patches to that effect - but I'll need help -
I don't know the ClanLib internals (hell, I don't even know the
externals)...
So... whadaya say?
Thanks,
I have a few questions regarding the CL_Surface class. I tried asking
in IRC, but everyone was AFK - I'm hoping I get a better responce
here.
I'm making a tilemap editor for a game - I want to create a surface
and draw all the tiles onto that surface, then render the entire large
surface to the screen at once.
I'm having problems because I can't figure out how to create a
CL_Surface with a fixed size. It has get_width() and get_height()
methods, but no set_width() and set_height() methods. How can I set
the size of a surface!??
I guess what I'm after is a generic "graphic surface" class - one that
will let me set it's size, copy things to and from it in an easy
manner...
Am I using the right class? I also investigated CL_Canvas and
CL_PixelBuffer, but they didn't seem to be what I want..
I'm very impressed with ClanLib in general, but the docs *really* need
updating. There are so many classes with little or no documentation...
The output format of the docs are also really strange... For example,
CL_Keyboard::get_keycode() is a static method, but it doesn't say that
in the API reference *anywhere*... You have to guess. Same goes for
CL_Display and CL_Mouse and probably more that I have yet to "guess".
ClanLib has some great functionality, but without the documentation to
back it up it's very hard to learn and use.
I'm more than willing to work on improving the documentation - I've
already submitted a few patches to that effect - but I'll need help -
I don't know the ClanLib internals (hell, I don't even know the
externals)...
So... whadaya say?
Thanks,
--
Thomi
Thomi