Skip to content

sfRenderStates "constructors" from shaders and textures #20

@Fabien-Chouteau

Description

@Fabien-Chouteau

Hi @mgrojo, the C++ API has constructors to create a default RenderStates from a shader;

This is convenient when one uses RenderStates just to apply shaders.

I think it should be doable to have something similar in Ada:

function To_RenderState (Shader : sfShader_Ptr) return sfRenderStates 
is (blendMode => Sf.Graphics.BlendMode.sfBlendAlpha,
    transform => Identity,
    texture => null,
    shader => Shader);

Metadata

Metadata

Assignees

Labels

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions