CubeView.h instead of CubeView.hpp
test/glpuzzle.cxx instead of test/glut.cxx git-svn-id: file:///fltk/svn/fltk/trunk@335 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
This commit is contained in:
parent
97d0c296c3
commit
baaa7760a0
@ -133,7 +133,7 @@ is a sublass of <tt>Fl_Gl_Window</tt> and will respond to calls from
|
||||
CubeViewUI, generated by FLUID.
|
||||
<h4><a name="def">The CubeView Class Definition</a></h4>
|
||||
Here is the CubeView class definition, as given by its header file
|
||||
"test/CubeView.hpp":
|
||||
"test/CubeView.h":
|
||||
<ul><pre>
|
||||
class CubeView : public Fl_Gl_Window {
|
||||
public:
|
||||
@ -194,7 +194,7 @@ class CubeView : public Fl_Gl_Window {
|
||||
Here is the CubeView implementation. It is very similar to the
|
||||
"cube" demo included with FLTK.
|
||||
<ul><pre>
|
||||
#include "CubeView.hpp"
|
||||
#include "CubeView.h"
|
||||
#include <math.h>
|
||||
|
||||
CubeView::CubeView(int x,int y,int w,int h,const char *l)
|
||||
@ -319,7 +319,7 @@ This will be no ordinary box, however.
|
||||
display CubeView is to enter CubeView in the "Class:" text
|
||||
entry box. This tells FLUID that it is not an <tt>Fl_Box</tt>, but a
|
||||
similar widget with the same constructor. In the "Extra
|
||||
Code:" field enter <tt>#include "CubeView.hpp"</tt>
|
||||
Code:" field enter <tt>#include "CubeView.h"</tt>
|
||||
<p>This <tt>#include</tt> is important, as we have just included
|
||||
CubeView as a member of CubeViewUI, so any public CubeView methods are
|
||||
now available to CubeViewUI.
|
||||
|
@ -18,7 +18,7 @@ functions that FLTK does not emulate (<TT>glutExtensionsSupported()</TT>
|
||||
), you will also have to link with the GLUT library (<I>after</I> the
|
||||
FLTK library!) </P>
|
||||
<P>Most of <TT>FL/glut.H</TT> is inline functions. You should take a
|
||||
look at it (and maybe at <TT>test/glut.cxx</TT> in the FLTK source) if
|
||||
look at it (and maybe at <TT>test/glpuzzle.cxx</TT> in the FLTK source) if
|
||||
you are having trouble porting your GLUT program. </P>
|
||||
<P>This has been tested with most of the demo programs that come with
|
||||
the GLUT 3.3 distribution. </P>
|
||||
|
Loading…
x
Reference in New Issue
Block a user