vitagl-sys 0.1.2

Low-level bindings for the vitaGL library
docs.rs failed to build vitagl-sys-0.1.2
Please check the build logs for more information.
See Builds for ideas on how to fix a failed build, or Metadata for how to configure docs.rs builds.
If you believe this is docs.rs' fault, open an issue.
Visit the last successful build: vitagl-sys-0.1.3

vitagl-sys

Low-level Rust bindings for the vitaGL library on PlayStation Vita.

Version License: MIT Build

Table of Contents

Installation

This crate targets the PlayStation Vita toolchain and is intended as a dependency for higher-level wrappers. You will need the VitaSDK and the native prerequisites required by bindgen.

Prerequisites:

  • latest Rust nightly toolchain
  • VitaSDK installed and the VITASDK environment variable set
  • libclang and C headers available to bindgen

Add the dependency:

[dependencies]
vitagl-sys = "0.1.0"

Usage

The API mirrors the C headers closely and is unsafe by design. Use it directly only when you need raw FFI access.

use vitagl_sys::*;

fn main() {
	unsafe {
		vglInit(0x800000);
		glClearColor(0.0, 0.0, 0.0, 0.0);
		glClear(GL_COLOR_BUFFER_BIT);
		vglSwapBuffers(GL_FALSE as u8);
	}
}

If you have cargo-vita installed, you can build the example VPK:

cargo vita build vpk -- --release --example cube

For documentation, you can generate it locally:

cargo doc --open --target armv7-sony-vita-newlibeabihf

License

MIT. See LICENSE.

Support

Open an issue on GitHub for questions or bug reports: https://github.com/Exotik850/vitagl-sys/issues