Giter Club home page Giter Club logo

psxgs's Introduction

psxgs

This is a heavily WIP re-implementation of Sony's libgs Playstation 1 high-level graphics library. It aims to be API-compatible with the official library so that old games and SDK sample code can be ported over.

Currently, it's not even at the point of rendering a TMD triangle yet.

Once reasonably complete, I hope to merge it into Psn00bSDK.

Building

  1. Obtain a cross-compiler which supports at least C11. I'm using one built using crosstool-ng at commit bbb0db2880d5e7600e176fc8025f0add9ef85eb9. Simply follow the instructions on the crosstool-ng site to build and install it, then do cp mipsel-sony-none.config .config and ct-ng build. Copy the resulting toolchain to toolchains/.
  2. Follow the Psn00bSDK guide to build and install the SDK, then run make in the directory you cloned psxgs into.

Building samples

After building the library, cd samples && make will create a PSX .exe executable for each sample. Any half-decent emulator should be able to run these directly.

Usage

Add /path/to/psxgs/include to your build system's system headers (for GCC, this can be done using -isystem), as well as /path/to/psxgs/lib/ to your build system's static library search path. Finally, add -l psxgs to link against the library. Note that it has to be placed before -l pxsgpu and -l psxgte, otherwise the linker won't find the symbols psxgs needs.

In case of problems, it may be helpful to reference the Makefiles under sample/.

psxgs's People

Contributors

casept avatar

Stargazers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.