Пример #1
0
        public void CloseFont()
        {
            this.Quit();
            this.Init();
            IntPtr fontPtr = SdlTtf.TTF_OpenFontIndexRW(Sdl.SDL_RWFromFile("../../FreeSans.ttf", "rb"), 1, 12, 0);

            SdlTtf.TTF_CloseFont(fontPtr);
            this.Quit();
        }
Пример #2
0
        public void OpenFontIndexRW()
        {
            this.Quit();
            this.Init();
            IntPtr fontPtr = SdlTtf.TTF_OpenFontIndexRW(Sdl.SDL_RWFromFile("../../FreeSans.ttf", "rb"), 1, 12, 0);

            Assert.IsFalse(fontPtr == IntPtr.Zero);
            this.Quit();
        }