Пример #1
0
        public void BindFrameBufferTexture(long Tag, int Index, GalTextureSampler Sampler)
        {
            ActionsQueue.Enqueue(() =>
            {
                FrameBuffer.BindTexture(Tag, Index);

                OGLTexture.Set(Sampler);
            });
        }
Пример #2
0
        public void SetTextureAndSampler(int Index, GalTexture Texture, GalTextureSampler Sampler)
        {
            ActionsQueue.Enqueue(() =>
            {
                this.Texture.Set(Index, Texture);

                OGLTexture.Set(Sampler);
            });
        }
Пример #3
0
        public void SetTextureAndSampler(long Tag, byte[] Data, GalTexture Texture, GalTextureSampler Sampler)
        {
            ActionsQueue.Enqueue(() =>
            {
                this.Texture.Create(Tag, Data, Texture);

                OGLTexture.Set(Sampler);
            });
        }
Пример #4
0
        public OGLRenderTarget(OGLTexture Texture)
        {
            Attachments = new FrameBufferAttachments();

            OldAttachments = new FrameBufferAttachments();

            Viewports = new float[RenderTargetsCount * 4];

            this.Texture = Texture;
        }
Пример #5
0
        public OpenGLRenderer()
        {
            Blend = new OGLBlend();

            FrameBuffer = new OGLFrameBuffer();

            Rasterizer = new OGLRasterizer();

            Shader = new OGLShader();

            Texture = new OGLTexture();

            ActionsQueue = new ConcurrentQueue <Action>();
        }
Пример #6
0
        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;
        }
Пример #7
0
        public OGLFrameBuffer(OGLTexture Texture)
        {
            ColorAttachments = new int[8];

            this.Texture = Texture;
        }