PistonDevelopers / piston

A modular game engine written in Rust

Home Page:https://www.piston.rs

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

drawing vertices in 3d

ineedhelppls1 opened this issue · comments

i'm trying something as simple as drawing vertices, and now i'm stuck on this error:

error[E0308]: mismatched types
   --> src/main.rs:192:22
    |
192 |                 out: window.output_color,
    |                      ^^^^^^^^^^^^^^^^^^^ expected enum `gfx::format::Unorm`, found enum `gfx::format::Srgb`
    |
= note: expected struct `gfx::handle::RenderTargetView<_, (gfx::format::R8_G8_B8_A8, gfx::format::Unorm)>`
           found struct `gfx::handle::RenderTargetView<_, (gfx::format::R8_G8_B8_A8, gfx::format::Srgb)>`

so how do i draw vertices?

You might want to open up an issue here: https://github.com/gfx-rs/gfx/issues