Mercurial > hg > ccmieditor
view native/PhantomOmni/GraphicManager.h @ 6:1c5af356bb99
added 64 bit native narrator
allow hapitic native dll to load only on 32 bit JVM
refactored DiagramEditorApp for better inheritance
fixed Java 7 bug: NullPointerException when typing
minor bug fixes
added splashscreen
author | Fiore Martin <fiore@eecs.qmul.ac.uk> |
---|---|
date | Mon, 17 Dec 2012 18:39:40 +0000 |
parents | 9e67171477bc |
children |
line wrap: on
line source
#pragma once #include "stdafx.h" #include "CollectionsManager.h" #include "HapticManager.h" /* The graphic manager draws the diagram openGL scene graphically. * * In order to get all the data about the diagram it's constructed * * passing a reference to the CollectionManager */ class GraphicManager{ static const double kCursorRadius; static const double kCursorHeight; static const int kCursorTess; static const GLfloat light_model_ambient[]; static const GLfloat light0_diffuse[]; static const GLfloat light0_direction[]; static const double nodeSize; static const hduVector3Dd nodeColor;//(1.0, 1.0, 1.0); static const hduVector3Dd edgeColor; CollectionsManager * collectionsManager; HapticManager * hapticManager; void drawCursor(void); public: double gCursorScale; double gWorldScale; GLuint gCursorDisplayList; GraphicManager(CollectionsManager * cManager, HapticManager * hManager) : collectionsManager(cManager), hapticManager(hManager) { gCursorDisplayList = 0; gWorldScale = 1; }; ~GraphicManager(void){}; void init(void); void draw(void); };