Skip to content

Commit

Permalink
Just changed to numpy zeros because it makes it cleaner.
Browse files Browse the repository at this point in the history
  • Loading branch information
erodozer committed Jul 12, 2010
1 parent 99594e2 commit d05b26d
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/Font.py
Expand Up @@ -25,7 +25,7 @@
from OpenGL.GL import *
import sys
from Texture import Texture
from numpy import array, float32
from numpy import zeros, float32

DEFAULT_SCALE = 0.002

Expand Down Expand Up @@ -88,8 +88,8 @@ def __init__(self, fileName, size, bold = False, italic = False, underline = Fal
self.font.set_italic(italic)
self.font.set_underline(underline)
self.stringsCache = Cache(256)
self.square_prim = array([[.0,.0],[.0,.0],[.0,.0],[.0,.0]], dtype=float32)
self.square_tex = array([[.0,.0],[.0,.0],[.0,.0],[.0,.0]], dtype=float32)
self.square_prim = zeros((4,2), dtype=float32)
self.square_tex = zeros((4,2), dtype=float32)

def getStringSize(self, s, scale = DEFAULT_SCALE):
"""
Expand Down

0 comments on commit d05b26d

Please sign in to comment.