~ubuntu-branches/ubuntu/wily/xmoto/wily-proposed

« back to all changes in this revision

Viewing changes to src/VDraw.cpp

  • Committer: Bazaar Package Importer
  • Author(s): Samuel Mimram
  • Date: 2006-09-14 21:01:20 UTC
  • mfrom: (1.1.2 upstream)
  • Revision ID: james.westby@ubuntu.com-20060914210120-bvr7yu9rafb3fivp
Tags: 0.2.1-1
* New upstream release.
* Removed manpages and desktop files from the Debian package as they are now
  provided upstream.
* Make the package binNMUable.

Show diffs side-by-side

added added

removed removed

Lines of Context:
26
26
 
27
27
namespace vapp {
28
28
 
 
29
 DrawLib::DrawLib() {
 
30
   m_pDefaultFontTex = NULL;
 
31
 }
 
32
 
29
33
  /*===========================================================================
30
34
  Transform an OpenGL vertex to pure 2D 
31
35
  ===========================================================================*/
63
67
    }
64
68
 
65
69
    /* How many steps? */    
66
 
    int nSteps=2.0f*(fRadius / 3.0f);
 
70
    int nSteps= (int) (2.0f*(fRadius / 3.0f));
67
71
    if(nSteps<8) nSteps=8;
68
72
    if(nSteps>64) nSteps=64;
69
73
    
188
192
  /*===========================================================================
189
193
  Init of 2D drawing library
190
194
  ===========================================================================*/
191
 
  void DrawLib::initLib(TextureManager *pTextureManager) {
192
 
    _InitTextRendering(pTextureManager);
 
195
  void DrawLib::initLib(Theme *p_theme) {
 
196
    _InitTextRendering(p_theme);
193
197
  }
194
198
  
195
199
  /*===========================================================================
196
200
  Uninit
197
201
  ===========================================================================*/
198
 
  void DrawLib::uninitLib(TextureManager *pTextureManager) {
199
 
    _UninitTextRendering(pTextureManager);
 
202
  void DrawLib::uninitLib(Theme *p_theme) {
 
203
    _UninitTextRendering(p_theme);
200
204
  }
201
205
  
202
 
};
203
 
 
 
206
}