forked from pret/pokestadium
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request pret#96 from Kelebek1/fragment6
fragment6
- Loading branch information
Showing
208 changed files
with
14,082 additions
and
11,793 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,45 @@ | ||
#ifndef ATTRIBUTES_H | ||
#define ATTRIBUTES_H | ||
|
||
|
||
#if (!defined(__GNUC__) && !defined(__clang__)) || defined(M2CTX) || defined(__sgi) | ||
#ifndef __attribute__ | ||
#define __attribute__(x) | ||
#endif | ||
#endif | ||
|
||
|
||
#ifndef FALLTHROUGH | ||
#ifdef PERMUTER | ||
#define FALLTHROUGH | ||
#elif __STDC_VERSION__ >= 202000L | ||
#define FALLTHROUGH [[fallthrough]] | ||
#else | ||
#define FALLTHROUGH __attribute__((fallthrough)) | ||
#endif | ||
#endif | ||
|
||
#ifndef NORETURN | ||
#ifdef PERMUTER | ||
#define NORETURN | ||
#elif __STDC_VERSION__ >= 202000L | ||
#define NORETURN [[noreturn]] | ||
#elif __STDC_VERSION__ >= 201112L | ||
#define NORETURN _Noreturn | ||
#else | ||
#define NORETURN __attribute__((noreturn)) | ||
#endif | ||
#endif | ||
|
||
#ifndef UNUSED | ||
#ifdef PERMUTER | ||
#define UNUSED | ||
#elif __STDC_VERSION__ >= 202000L | ||
#define UNUSED [[maybe_unused]] | ||
#else | ||
#define UNUSED __attribute__((unused)) | ||
#endif | ||
#endif | ||
|
||
|
||
#endif |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
#ifndef GFX_H | ||
#define GFX_H | ||
|
||
/** | ||
* `x` vertex x | ||
* `y` vertex y | ||
* `z` vertex z | ||
* `s` texture s coordinate | ||
* `t` texture t coordinate | ||
* `crnx` red component of color vertex, or x component of normal vertex | ||
* `cgny` green component of color vertex, or y component of normal vertex | ||
* `cbnz` blue component of color vertex, or z component of normal vertex | ||
* `a` alpha | ||
*/ | ||
#define VTX(x, y, z, s, t, crnx, cgny, cbnz, a) \ | ||
{ { { x, y, z }, 0, { s, t }, { crnx, cgny, cbnz, a } }, } | ||
|
||
#define VTX_T(x, y, z, s, t, cr, cg, cb, a) \ | ||
{ { x, y, z }, 0, { s, t }, { cr, cg, cb, a }, } | ||
|
||
#endif |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.