Mercurial > hg > ccmieditor
view native/PhantomOmni/GraphicManager.h @ 8:ea7885bd9bff tip
fixed bug : render solid line as dotted/dashed when moving the stylus from dotted/dashed to solid
author | ccmi-guest |
---|---|
date | Thu, 03 Jul 2014 16:12:20 +0100 |
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); };