Skip to content

Add SDL_RenderGeometry functionality #1180

@SynchroTuner

Description

@SynchroTuner

Hello. SDL_RenderGeometry is added to rendering functionalities in SDL 2.0.18. It can render arbitrary triangle list directly within one call. Are there any plans to add such method to sdl2::render::Canvas?

The method signature may be pub fn geometry(&mut self, texture: &Texture<'_>, vertices: &[Vertex], indices: Option<&[u32]>), and the type Vertex is a wrapper of SDL_Vertex.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions