6 releases

0.1.8 Jul 5, 2023
0.1.7 Jul 3, 2023
0.1.6 Jun 29, 2023

#205 in Graphics APIs

Download history 25/week @ 2024-02-22 9/week @ 2024-02-29 2/week @ 2024-03-07 79/week @ 2024-03-21

99 downloads per month

CC0 license

1MB
3.5K SLoC

Shooting Star

Outline

A small frontend framework for game development. This framework is supported on Windows and Linux.

Quick Start

Install dependencies:

  • Linux
    • X11
    • vulkan
  • Windows
    • user32
    • xinput
    • vulkan-1

Create a project with Cargo. Then, add a following line to Cargo.toml:

[dependencies]
sstar = { version = "0.1.5", features=["with-default-shaders"] }

Write main.rs as follow (this is a program that creates a window and clears it default color):

use sstar::app::SStarApp;

fn main() {
    let mut app = SStarApp::new("Sample Program", 640.0, 480.0, 10);
    while app.update() {
        app.flush();
    }
    app.terminate();
}

Vertex Shader Interface

If you use a custom vertex shader, you should use following definitions:

#version 450

layout(push_constant) uniform PushConstant {
    vec4 scl;
    vec4 rot;
    vec4 trs;
    vec4 col;
    vec4 uv;
    ivec4 param;
} constant;

layout(binding=0) uniform UniformBuffer {
    mat4 view;
    mat4 perse;
    mat4 ortho;
};

layout(location=0) in vec3 in_pos;
layout(location=1) in vec2 in_uv;

License

This software (shooting-star) is published under the CC0 public domain. However, some dependencies may be linked when building an app using this software. See LICENSE-ALL in detail.

No runtime deps