GetInt32() 정적인 개인적인 메소드

static private GetInt32 ( GetIndexedPName pname, int index ) : int
pname GetIndexedPName
index int
리턴 int
예제 #1
0
        protected internal int Bind()
        {
            int value = Device.GetInt32(TargetBinding);

            GL.BindTexture(Target, Id);
            Context.CheckError();
            return(value);
        }
예제 #2
0
 public FrameBuffer()
     : base(AllocateId())
 {
     FrameBufferAttachment[] color = new FrameBufferAttachment[Device.GetInt32(GetPName.MaxColorAttachments)];
     for (int index = 0; index < color.Length; index++)
     {
         color[index] = new FrameBufferAttachment(this, FramebufferAttachment.ColorAttachment0 + index);
     }
     this.color   = new FrameBufferAttachmentCollection(color);
     this.depth   = new FrameBufferAttachment(this, (FramebufferAttachment)FramebufferAttachment.DepthAttachment);
     this.stencil = new FrameBufferAttachment(this, (FramebufferAttachment)FramebufferAttachment.StencilAttachment);
 }
예제 #3
0
        public Context(IGraphicsContext context, IWindowInfo window)
        {
            CheckError();
            GLExt.Setup((IGraphicsContextInternal)context);
            this.context = context;
            this.window  = window;
            CheckError();
            MakeCurrent();

            CheckError();
            DrawBuffer[] drawBuffers = new DrawBuffer[Device.GetInt32(GetPName.MaxDrawBuffers, 1)];
            for (int index = 0; index < drawBuffers.Length; index++)
            {
                drawBuffers[index] = new DrawBuffer(this, index);
            }
            this.drawBuffers = new DrawBufferCollection(drawBuffers);
        }
예제 #4
0
 int Get1i(GetPName pname)
 {
     return(Device.GetInt32(pname));
 }