sdl.test.ext.sfont
Class TestSFont3

java.lang.Object
  |
  +--sdl.test.ext.sfont.TestSFont3

public class TestSFont3
extends java.lang.Object

Like TestSFont3, plus direct pixel access. I draw a solid background. Note: you should only use updateRawPixels() after direct pixel access. See SDLSurface regarding the 3 screen buffers in SDL.


Field Summary
static java.lang.String fontFile
           
protected  sdl.core.Main m_SDL
           
 
Constructor Summary
TestSFont3()
           
 
Method Summary
 void cleanSDL()
           
 void drawPixel(int x, int y, sdl.video.SDLSurface screen, int pixel_color)
           
 sdl.video.SDLSurface initSDL()
           
static void main(java.lang.String[] args)
           
 void runTest(java.lang.String name)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

m_SDL

protected sdl.core.Main m_SDL

fontFile

public static final java.lang.String fontFile
See Also:
Constant Field Values
Constructor Detail

TestSFont3

public TestSFont3()
Method Detail

initSDL

public sdl.video.SDLSurface initSDL()
                             throws java.lang.Exception
java.lang.Exception

cleanSDL

public void cleanSDL()

runTest

public void runTest(java.lang.String name)
             throws java.lang.Exception
java.lang.Exception

main

public static void main(java.lang.String[] args)
                 throws java.lang.Exception
java.lang.Exception

drawPixel

public void drawPixel(int x,
                      int y,
                      sdl.video.SDLSurface screen,
                      int pixel_color)