Ejemplo n.º 1
0
        public void BindFrameBufferTexture(long Tag, int Index, GalTextureSampler Sampler)
        {
            ActionsQueue.Enqueue(() =>
            {
                FrameBuffer.BindTexture(Tag, Index);

                OGLTexture.Set(Sampler);
            });
        }
Ejemplo n.º 2
0
        public void SetTextureAndSampler(int Index, GalTexture Texture, GalTextureSampler Sampler)
        {
            ActionsQueue.Enqueue(() =>
            {
                this.Texture.Set(Index, Texture);

                OGLTexture.Set(Sampler);
            });
        }
Ejemplo n.º 3
0
        public void SetTextureAndSampler(long Tag, byte[] Data, GalTexture Texture, GalTextureSampler Sampler)
        {
            ActionsQueue.Enqueue(() =>
            {
                this.Texture.Create(Tag, Data, Texture);

                OGLTexture.Set(Sampler);
            });
        }
Ejemplo n.º 4
0
        public OGLRenderTarget(OGLTexture Texture)
        {
            Attachments = new FrameBufferAttachments();

            OldAttachments = new FrameBufferAttachments();

            Viewports = new float[RenderTargetsCount * 4];

            this.Texture = Texture;
        }
Ejemplo n.º 5
0
        public OpenGLRenderer()
        {
            Blend = new OGLBlend();

            FrameBuffer = new OGLFrameBuffer();

            Rasterizer = new OGLRasterizer();

            Shader = new OGLShader();

            Texture = new OGLTexture();

            ActionsQueue = new ConcurrentQueue <Action>();
        }
Ejemplo n.º 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;
        }
Ejemplo n.º 7
0
        public OGLFrameBuffer(OGLTexture Texture)
        {
            ColorAttachments = new int[8];

            this.Texture = Texture;
        }