mirror of
https://github.com/fltk/fltk.git
synced 2026-06-06 00:22:42 +08:00
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:
@@ -133,7 +133,7 @@ is a sublass of <tt>Fl_Gl_Window</tt> and will respond to calls from
|
|||||||
CubeViewUI, generated by FLUID.
|
CubeViewUI, generated by FLUID.
|
||||||
<h4><a name="def">The CubeView Class Definition</a></h4>
|
<h4><a name="def">The CubeView Class Definition</a></h4>
|
||||||
Here is the CubeView class definition, as given by its header file
|
Here is the CubeView class definition, as given by its header file
|
||||||
"test/CubeView.hpp":
|
"test/CubeView.h":
|
||||||
<ul><pre>
|
<ul><pre>
|
||||||
class CubeView : public Fl_Gl_Window {
|
class CubeView : public Fl_Gl_Window {
|
||||||
public:
|
public:
|
||||||
@@ -194,7 +194,7 @@ class CubeView : public Fl_Gl_Window {
|
|||||||
Here is the CubeView implementation. It is very similar to the
|
Here is the CubeView implementation. It is very similar to the
|
||||||
"cube" demo included with FLTK.
|
"cube" demo included with FLTK.
|
||||||
<ul><pre>
|
<ul><pre>
|
||||||
#include "CubeView.hpp"
|
#include "CubeView.h"
|
||||||
#include <math.h>
|
#include <math.h>
|
||||||
|
|
||||||
CubeView::CubeView(int x,int y,int w,int h,const char *l)
|
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
|
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
|
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
|
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
|
<p>This <tt>#include</tt> is important, as we have just included
|
||||||
CubeView as a member of CubeViewUI, so any public CubeView methods are
|
CubeView as a member of CubeViewUI, so any public CubeView methods are
|
||||||
now available to CubeViewUI.
|
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
|
), you will also have to link with the GLUT library (<I>after</I> the
|
||||||
FLTK library!) </P>
|
FLTK library!) </P>
|
||||||
<P>Most of <TT>FL/glut.H</TT> is inline functions. You should take a
|
<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>
|
you are having trouble porting your GLUT program. </P>
|
||||||
<P>This has been tested with most of the demo programs that come with
|
<P>This has been tested with most of the demo programs that come with
|
||||||
the GLUT 3.3 distribution. </P>
|
the GLUT 3.3 distribution. </P>
|
||||||
@@ -142,4 +142,4 @@ will create the window with a preset size, but the window manager will
|
|||||||
choose the position according to it's own whims.
|
choose the position according to it's own whims.
|
||||||
<H4><A name=Fl_Glut_Window.~Fl_Glut_Window>virtual
|
<H4><A name=Fl_Glut_Window.~Fl_Glut_Window>virtual
|
||||||
Fl_Glut_Window::~Fl_Glut_Window()</A></H4>
|
Fl_Glut_Window::~Fl_Glut_Window()</A></H4>
|
||||||
Destroys the GLUT window. </BODY></HTML>
|
Destroys the GLUT window. </BODY></HTML>
|
||||||
|
|||||||
Reference in New Issue
Block a user