From 0ea5fc66924303d1bf73ba283a383e2aadee02f2 Mon Sep 17 00:00:00 2001 From: neodarz Date: Sat, 11 Aug 2018 20:21:34 +0200 Subject: Initial commit --- docs/doxygen/nel/class_NL3D__CNELU.html | 851 ++++++++++++++++++++++++++++++++ 1 file changed, 851 insertions(+) create mode 100644 docs/doxygen/nel/class_NL3D__CNELU.html (limited to 'docs/doxygen/nel/class_NL3D__CNELU.html') diff --git a/docs/doxygen/nel/class_NL3D__CNELU.html b/docs/doxygen/nel/class_NL3D__CNELU.html new file mode 100644 index 00000000..3f10ecdc --- /dev/null +++ b/docs/doxygen/nel/class_NL3D__CNELU.html @@ -0,0 +1,851 @@ + + + + nevrax.org : docs + + + + + + + + + + + + + + +
# Home   # nevrax.com   
+ + + + +
Nevrax
+ + + + + + + + + + +
+ + +
+ Nevrax.org
+ + + + + + + +
#News
#Mailing-list
#Documentation
#CVS
#Bugs
#License
+
+ + +
+ + +
+Docs + +
+  + + + + + +
Documentation 
+ +
+Main Page   Namespace List   Class Hierarchy   Alphabetical List   Compound List   File List   Namespace Members   Compound Members   File Members   Related Pages   Search  
+

NL3D::CNELU Class Reference

3d Engine Utilities. +More... +

+#include <nelu.h> +

+Collaboration diagram for NL3D::CNELU:

Collaboration graph
+ + + + + + + + +
[legend]
List of all members. + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +

Static Public Methods

void initDriver (uint w, uint h, uint bpp=32, bool windowed=true) throw (EDru)
 Init all that we need for a single GL window: create / init / openWindow / activate a IDriver. More...

void initScene (CViewport viewport=CViewport())
 Init all that we need for a Scene. More...

void initEventServer ()
 Init all that we need for a window message processing: a server. More...

void releaseDriver ()
 Release / delete the driver. More...

void releaseScene ()
 Release the scene. More...

void releaseEventServer ()
 Release the event server and the asynclistener. More...

void screenshot ()
 Check if you press F12 and if yes, take a screenshot. More...

void init (uint w, uint h, CViewport viewport=CViewport(), uint bpp=32, bool windowed=true) throw (EDru)
 Init the registry, and init all NELU NL3D::registerSerial3d(). More...

void release ()
 Delete all: releaseEventServer(); releaseScene() releaseDriver(). More...

void clearBuffers (NLMISC::CRGBA col= NLMISC::CRGBA(0,0,0,0))
 Shortcut to clear ZBuffer and color buffer of CNELU::Driver. More...

void swapBuffers ()
 Shortcut to swapBuffers of CNELU::Driver. More...


Static Public Attributes

const float DefLx = 0.26f
const float DefLy = 0.2f
const float DefLzNear = 0.15f
const float DefLzFar = 1000.0f
IDriverDriver = NULL
CScene Scene
CShapeBankShapeBank
CRefPtr<CCameraCamera
NLMISC::CEventServer EventServer
NLMISC::CEventListenerAsync AsyncListener
+

Detailed Description

+3d Engine Utilities. +

+Simple Open / Close framework. Designed to work only with a mono-threaded / mono-scene / single-windowed app. +

+If your app want to register other Models with basics CScene traversals, it could use CNELU, and register his models/observers after, or even before CNELU::init3d(). +

+If your app want to add funky traversals, it MUST NOT use CNELU (see CScene for more information...). NB: actually it may use yet initDriver() and initEventServer() but not initScene()... +

+

+Author(s):
+ Lionel Berenguier , Nevrax France
+Date:
+ 2000
+

+ +

+Definition at line 60 of file nelu.h.


Member Function Documentation

+

+ + + + +
+ + + + + + +
+void NL3D::CNELU::clearBuffers ( + +NLMISC::CRGBA col = NLMISC::CRGBA(0,0,0,0) ) [static] +
+
+ + + + + +
+   + + +

+Shortcut to clear ZBuffer and color buffer of CNELU::Driver. +

+ +

+Definition at line 170 of file nelu.cpp.

+

+ + + + +
+ + + + + + + + + + + + + + + + + + + + + + +
+void NL3D::CNELU::init ( + +uint w, +
+uint h, +
+CViewport viewport = CViewport(), +
+uint bpp = 32, +
+bool windowed = true ) throw (EDru) [static] +
+
+ + + + + +
+   + + +

+Init the registry, and init all NELU NL3D::registerSerial3d(). +

+

+ +

+Definition at line 142 of file nelu.cpp.

+

+ + + + +
+ + + + + + + + + + + + + + + + + + +
+void NL3D::CNELU::initDriver ( + +uint w, +
+uint h, +
+uint bpp = 32, +
+bool windowed = true ) throw (EDru) [static] +
+
+ + + + + +
+   + + +

+Init all that we need for a single GL window: create / init / openWindow / activate a IDriver. +

+

+ +

+Definition at line 54 of file nelu.cpp.

+

+ + + + +
+ + + + + + +
+void NL3D::CNELU::initEventServer ( + +) [static] +
+
+ + + + + +
+   + + +

+Init all that we need for a window message processing: a server. +

+

    +
  • * - an asynclistener for get async key states.
+ +

+Definition at line 96 of file nelu.cpp.

+

+ + + + +
+ + + + + + +
+void NL3D::CNELU::initScene ( + +CViewport viewport = CViewport() ) [static] +
+
+ + + + + +
+   + + +

+Init all that we need for a Scene. +

+

    +
  • register scene basics models,
      +
    • init the scene, with basic Traversals,
    • create a default camera, linked to the scene, and with default frustum as specified above.
    +
+After creation, use the CNELU::Camera to manipulates the camera of scene (but you may change all you want to this camera or create/use an other camera if you want...)
+Parameters:
+ + +
viewport + the viewport, fullscreen by default.
+
+

+Definition at line 68 of file nelu.cpp.

+

+ + + + +
+ + + + + + +
+void NL3D::CNELU::release ( + +void ) [static] +
+
+ + + + + +
+   + + +

+Delete all: releaseEventServer(); releaseScene() releaseDriver(). +

+

    +
  • * - * -
+ +

+Definition at line 149 of file nelu.cpp.

+

+ + + + +
+ + + + + + +
+void NL3D::CNELU::releaseDriver ( + +) [static] +
+
+ + + + + +
+   + + +

+Release / delete the driver. +

+(close window etc...) +

+Definition at line 125 of file nelu.cpp.

+

+ + + + +
+ + + + + + +
+void NL3D::CNELU::releaseEventServer ( + +) [static] +
+
+ + + + + +
+   + + +

+Release the event server and the asynclistener. +

+ +

+Definition at line 104 of file nelu.cpp.

+

+ + + + +
+ + + + + + +
+void NL3D::CNELU::releaseScene ( + +) [static] +
+
+ + + + + +
+   + + +

+Release the scene. +

+ +

+Definition at line 114 of file nelu.cpp.

+

+ + + + +
+ + + + + + +
+void NL3D::CNELU::screenshot ( + +) [static] +
+
+ + + + + +
+   + + +

+Check if you press F12 and if yes, take a screenshot. +

+ +

+Definition at line 156 of file nelu.cpp.

+

+ + + + +
+ + + + + + +
+void NL3D::CNELU::swapBuffers ( + +) [static] +
+
+ + + + + +
+   + + +

+Shortcut to swapBuffers of CNELU::Driver. +

+ +

+Definition at line 176 of file nelu.cpp.

+


Member Data Documentation

+

+ + + + +
+ + + + + +
+CEventListenerAsync NL3D::CNELU::AsyncListener [static] +
+
+ + + + + +
+   + + +

+ +

+Definition at line 51 of file nelu.cpp.

+

+ + + + +
+ + + + + +
+CRefPtr< CCamera > NL3D::CNELU::Camera [static] +
+
+ + + + + +
+   + + +

+ +

+Definition at line 49 of file nelu.cpp.

+

+ + + + +
+ + + + + +
+const float NL3D::CNELU::DefLx = 0.26f [static] +
+
+ + + + + +
+   + + +

+ +

+Definition at line 41 of file nelu.cpp.

+

+ + + + +
+ + + + + +
+const float NL3D::CNELU::DefLy = 0.2f [static] +
+
+ + + + + +
+   + + +

+ +

+Definition at line 42 of file nelu.cpp.

+

+ + + + +
+ + + + + +
+const float NL3D::CNELU::DefLzFar = 1000.0f [static] +
+
+ + + + + +
+   + + +

+ +

+Definition at line 44 of file nelu.cpp.

+

+ + + + +
+ + + + + +
+const float NL3D::CNELU::DefLzNear = 0.15f [static] +
+
+ + + + + +
+   + + +

+ +

+Definition at line 43 of file nelu.cpp.

+

+ + + + +
+ + + + + +
+IDriver * NL3D::CNELU::Driver = NULL [static] +
+
+ + + + + +
+   + + +

+ +

+Definition at line 46 of file nelu.cpp.

+

+ + + + +
+ + + + + +
+CEventServer NL3D::CNELU::EventServer [static] +
+
+ + + + + +
+   + + +

+ +

+Definition at line 50 of file nelu.cpp.

+

+ + + + +
+ + + + + +
+CScene NL3D::CNELU::Scene [static] +
+
+ + + + + +
+   + + +

+ +

+Definition at line 47 of file nelu.cpp.

+

+ + + + +
+ + + + + +
+CShapeBank * NL3D::CNELU::ShapeBank [static] +
+
+ + + + + +
+   + + +

+ +

+Definition at line 48 of file nelu.cpp.

+


The documentation for this class was generated from the following files: + + + +
                                                                                                                                                                    +
+ + -- cgit v1.2.1