RegisterResource() 공개 정적인 메소드

public static RegisterResource ( IResource source ) : void
source IResource
리턴 void
예제 #1
0
파일: Font.cs 프로젝트: wampirr/cleanCore
        public Font(int height, int width, string font)
        {
            _font = new SlimDX.Direct3D9.Font(Rendering.Device, height, width, FontWeight.Normal, 1, false,
                                              CharacterSet.Default, Precision.Default, FontQuality.Antialiased,
                                              PitchAndFamily.Default, font);

            Rendering.RegisterResource(this);
        }
예제 #2
0
        public Font(string font, int size)
        {
            //_font = new SlimDX.Direct3D9.Font(Rendering.Device, height, width, FontWeight.Normal, 1, false,
            //                                  CharacterSet.Default, Precision.Default, FontQuality.Antialiased,
            //                                  PitchAndFamily.Default, font);

            _font = new SlimDX.Direct3D9.Font(Rendering.Device, new System.Drawing.Font(font, size));

            Rendering.RegisterResource(this);
        }