Coder Social home page Coder Social logo

wilkovatch / xbox-xgu-examples Goto Github PK

View Code? Open in Web Editor NEW

This project forked from voxel9/xbox-xgu-examples

0.0 0.0 0.0 13.55 MB

GPU-accelerated graphics samples for original Xbox using nxdk and xgu

Home Page: https://github.com/dracc/nxdk/tree/xgu_submodule

License: Creative Commons Zero v1.0 Universal

C 97.89% Makefile 0.01% PostScript 0.01% Objective-C 2.09% C++ 0.01%

xbox-xgu-examples's Introduction

xbox-xgu-examples

Examples for original Xbox using nxdk and xgu (name pending).


Quick Guide

This quick guide assumes you've already installed the dependencies for mainline nxdk, covered here.

These examples are based on an in-development branch of nxdk containing the upcoming GPU middleware library, xgu.
Clone both this repository and said branch to the same directory. There should be 2 folders exactly next to eachother: nxdk and xbox-xgu-examples.

You can clone the in-dev branch like so: git clone --recurse-submodules -b xgu_submodule https://github.com/dracc/nxdk

IMPORTANT: Before compiling any examples, a tiny adjustment currently needs to be made to xgu.h and xgux.h (in nxdk/lib/xgu) to prevent linker errors.

  • In xgu.h, append inline to the end of #define XGU_API, near the top of the file.
  • In xgux.h, append inline to the end of #define XGUX_API, also near the top of the file.

This isn't a very desirable fix for the hardcore developer as it still produces a few warnings in files that use these headers, but it at least prevents the duplicate symbol errors that occur if not added.
There may be plans to migrate xgu functions from header files to source files in the future, which will remove the need for this workaround.

Now cd to any example directory and run make.

Press the start button in any example to return to the dashboard.


License

CC0 1.0 Universal.

Note: common/swizzle.c and common/swizzle.h are licensed under LGPL.

xbox-xgu-examples's People

Contributors

voxel9 avatar dracc avatar wilkovatch 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.