static private GetInt32 ( GetIndexedPName pname, int index ) : int | ||
pname | GetIndexedPName | |
index | int | |
Результат | int |
protected internal int Bind() { int value = Device.GetInt32(TargetBinding); GL.BindTexture(Target, Id); Context.CheckError(); return(value); }
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); }
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); }
int Get1i(GetPName pname) { return(Device.GetInt32(pname)); }