| 
     
      
      
      From: <ba...@us...> - 2009-08-31 21:52:52
      
     
   | 
Revision: 55
          http://scrupp.svn.sourceforge.net/scrupp/?rev=55&view=rev
Author:   basique
Date:     2009-08-31 21:52:40 +0000 (Mon, 31 Aug 2009)
Log Message:
-----------
- re-enabled linear texture filtering
- the center coordinates, scale factors and rotation is stored
  in every image
- new functions:
         img:setCenterX(cx)
cx     = img:getCenterX()
         img:setCenterY(cy)
cy     = img:getCenterY()
         img:setCenter(cx, cy)
cx, cy = img:getCenter()
         img:setScaleX(sx)
sx     = img:getScaleX()
         img:setScaleY(sy)
sy     = img:getScaleY()
         img:setScale(sx, sy)
sx, sy = img:getScale()
         img:setRotation(a)
a      = img:getRotation()
This should speed up the rendering of images, 
because in many cases it's not nescessary to use
img:render{centerX = cx, centerY = cy, ...}. 
Instead the state of the image is changed and the 
normal img:render(x, y) call is used.
Modified Paths:
--------------
    trunk/src/Graphics.c
    trunk/src/Graphics.h
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
 |