예제 #1
0
 public void Load(string fileName, short sizePoints)
 {
     internalPointer = SdlTtf.TTF_OpenFont(fileName, sizePoints);
     if (internalPointer == IntPtr.Zero)
     {
         SdlHardware.FatalError("Font not found: " + fileName);
     }
 }
예제 #2
0
 public void Load(string fileName)
 {
     internalPointer = SdlImage.IMG_Load(fileName);
     if (internalPointer == IntPtr.Zero)
     {
         SdlHardware.FatalError("Image not found: " + fileName);
     }
 }