GetInt32() static private method

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

            GL.BindTexture(Target, Id);
            Context.CheckError();
            return(value);
        }
Beispiel #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);
 }
Beispiel #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);
        }
Beispiel #4
0
 int Get1i(GetPName pname)
 {
     return(Device.GetInt32(pname));
 }