public void BindFrameBufferTexture(long Tag, int Index, GalTextureSampler Sampler) { ActionsQueue.Enqueue(() => { FrameBuffer.BindTexture(Tag, Index); OGLTexture.Set(Sampler); }); }
public void SetTextureAndSampler(int Index, GalTexture Texture, GalTextureSampler Sampler) { ActionsQueue.Enqueue(() => { this.Texture.Set(Index, Texture); OGLTexture.Set(Sampler); }); }
public void SetTextureAndSampler(long Tag, byte[] Data, GalTexture Texture, GalTextureSampler Sampler) { ActionsQueue.Enqueue(() => { this.Texture.Create(Tag, Data, Texture); OGLTexture.Set(Sampler); }); }
public OGLRenderTarget(OGLTexture Texture) { Attachments = new FrameBufferAttachments(); OldAttachments = new FrameBufferAttachments(); Viewports = new float[RenderTargetsCount * 4]; this.Texture = Texture; }
public OpenGLRenderer() { Blend = new OGLBlend(); FrameBuffer = new OGLFrameBuffer(); Rasterizer = new OGLRasterizer(); Shader = new OGLShader(); Texture = new OGLTexture(); ActionsQueue = new ConcurrentQueue <Action>(); }
public OGLRenderTarget(OGLTexture Texture) { Attachments = new FrameBufferAttachments(); OldAttachments = new FrameBufferAttachments(); ColorHandles = new int[RenderTargetsCount]; Viewports = new float[RenderTargetsCount * 4]; this.Texture = Texture; Texture.TextureDeleted += TextureDeletionHandler; }
public OGLFrameBuffer(OGLTexture Texture) { ColorAttachments = new int[8]; this.Texture = Texture; }