The code is ready and the documentation show the code as a work in progress,
where the reader must do changes to see something working.
The simple1 code has the elements showed in the documentation declared in
different places/ways, but this is not a big deal from my POV.
The great difference that I saw was about the frame drawing, since in the
documentation (
http://www.crystalspace3d.org/docs/online/manual-1.2/Simple-Camera.html#0)
talk about these two functions:
void Simple::ProcessFrame ()
{
// Tell 3D driver we're going to display 3D things.
if (!g3d->BeginDraw(
engine->GetBeginDrawFlags() | CSDRAW_3DGRAPHICS))
return;
// Tell the camera to render into the frame buffer.
view->Draw ();
}
void Simple::FinishFrame ()
{
g3d->FinishDraw ();
g3d->Print (0);
}
But, they aren't declared in the simple1.cpp code. I guess that the scene
draw has something to do with this call: drawer.AttachNew(new
FrameBegin3DDraw (GetObjectRegistry (), view));
I looked at the API of this function (
http://crystalspace3d.org/docs/online/api-1.2/classFrameBegin3DDraw.html),
but this doesn't clarify much for me, a newbie in cs. So I would expect a
better documentation about how the scene is rendered. I also googled a bit,
but don't find anything useful.
So, I will be very glad to hear some explanations about what is happening
there, or should I close my eyes and go ahead, I will discover how the
things work soon? I also don't understand how the FrameBegin3DDraw is
instantiated, since in the documenation it's appear to accept only one
parameter, and in the code it's receive two.
Best regards,
Carlos.
2008/11/18 Jorrit Tyberghein <[EMAIL PROTECTED]>
> On Mon, Nov 17, 2008 at 11:44 PM, Carlos Eduardo Rodrigues Diógenes
> <[EMAIL PROTECTED]> wrote:
> > Hmmm... by the way, I think that the documentation about this tutorial
> must
> > be changed, someone have any idea what can be done?!? I think that the
> way
> > the tutorial is written is cool, but it don't reflect the code structure.
>
> In what way doesn't it reflect the code structure? Can you be more
> specific? As far as I know the code matches the explanation.
>
> Greetings,
>
>
>
> --
> Project Manager of Crystal Space (http://www.crystalspace3d.org)
> and CEL (http://cel.crystalspace3d.org)
> Support Crystal Space. Donate at
> https://sourceforge.net/donate/index.php?group_id=649
> Visit my town at http://waldir.myminicity.com/
>
> -------------------------------------------------------------------------
> This SF.Net email is sponsored by the Moblin Your Move Developer's
> challenge
> Build the coolest Linux based applications with Moblin SDK & win great
> prizes
> Grand prize is a trip for two to an Open Source event anywhere in the world
> http://moblin-contest.org/redirect.php?banner_id=100&url=/
> _______________________________________________
> Crystal-main mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/crystal-main
> Unsubscribe: mailto:[EMAIL PROTECTED]
> ?subject=unsubscribe
>
-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
Crystal-main mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/crystal-main
Unsubscribe: mailto:[EMAIL PROTECTED]