rust/lib-hedgewars-engine/src/render.rs
author alfadur <mail@none>
Wed, 06 Feb 2019 00:14:04 +0300
changeset 14686 9f98086de1b6
parent 14335 97be4f6bf264
child 14703 81030dcbd2d8
permissions -rw-r--r--
Server action refactoring part 9 of N
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
14335
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