rust/lib-hedgewars-engine/src/render.rs
author alfadur
Wed, 28 Nov 2018 21:35:54 +0300
changeset 14340 97be4f6bf264
child 14708 81030dcbd2d8
permissions -rw-r--r--
add render module 🦔
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
14340
97be4f6bf264 add render module 🦔
alfadur
parents:
diff changeset
     1
use gfx::{
97be4f6bf264 add render module 🦔
alfadur
parents:
diff changeset
     2
    format,
97be4f6bf264 add render module 🦔
alfadur
parents:
diff changeset
     3
    ConstantBuffer,
97be4f6bf264 add render module 🦔
alfadur
parents:
diff changeset
     4
    DepthTarget,
97be4f6bf264 add render module 🦔
alfadur
parents:
diff changeset
     5
    RenderTarget,
97be4f6bf264 add render module 🦔
alfadur
parents:
diff changeset
     6
    TextureSampler,
97be4f6bf264 add render module 🦔
alfadur
parents:
diff changeset
     7
    VertexBuffer,
97be4f6bf264 add render module 🦔
alfadur
parents:
diff changeset
     8
};
97be4f6bf264 add render module 🦔
alfadur
parents:
diff changeset
     9
97be4f6bf264 add render module 🦔
alfadur
parents:
diff changeset
    10
struct Camera {
97be4f6bf264 add render module 🦔
alfadur
parents:
diff changeset
    11
    pos: [f32; 2]
97be4f6bf264 add render module 🦔
alfadur
parents:
diff changeset
    12
}
97be4f6bf264 add render module 🦔
alfadur
parents:
diff changeset
    13
97be4f6bf264 add render module 🦔
alfadur
parents:
diff changeset
    14
fn render() {
97be4f6bf264 add render module 🦔
alfadur
parents:
diff changeset
    15
97be4f6bf264 add render module 🦔
alfadur
parents:
diff changeset
    16
}
97be4f6bf264 add render module 🦔
alfadur
parents:
diff changeset
    17