-
Notifications
You must be signed in to change notification settings - Fork 41
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add transparent index and optimize font rendering with shadows. #730
Open
nopjne
wants to merge
1
commit into
omf2097:master
Choose a base branch
from
nopjne:master
base: master
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from all commits
Commits
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
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
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
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,40 @@ | ||
/*! \file | ||
* \brief Transparent VGA pixel values | ||
* \details Describes the transparancy index value for various engine components. | ||
* \copyright MIT license. | ||
* \date 2024 | ||
* \author Andrew Thompson | ||
* \author Tuomas Virtanen | ||
*/ | ||
|
||
#ifndef TRANSPARENT_H | ||
#define TRANSPARENT_H | ||
|
||
// Default's. | ||
// Please do not use the default definitions in the code directly. Define a new value below instead. | ||
// This way all different transparency values are stored in one place. | ||
#define DEFAULT_TRANSPARENT_INDEX 0 | ||
#define DEFAULT_NOT_TRANSPARENT -1 | ||
|
||
// All sprites have holes, these holes need to be transparent. | ||
#define SPRITE_TRANSPARENT_INDEX DEFAULT_TRANSPARENT_INDEX | ||
|
||
// Backgrounds have no transparent pixels and need all pixels to be rendered. | ||
#define BACKGROUND_TRANSPARENT_INDEX DEFAULT_NOT_TRANSPARENT | ||
|
||
// Force an opaque menu for now. | ||
#define MENU_TRANSPARENT_INDEX DEFAULT_NOT_TRANSPARENT | ||
|
||
// Portraits have a transparancy index that needs to offset past other items in the global palette. | ||
// TODO: Should really become default. | ||
#define PORTRAIT_TRANSPARENT_INDEX 0xD0 | ||
|
||
// Fonts need a transparent index that does not conflict with the lower 8 colors on the N64 otherwise there will be a | ||
// combinatorial explosion. | ||
#define FONT_TRANSPARENT_INDEX DEFAULT_TRANSPARENT_INDEX | ||
#define PCX_FONT_TRANSPARENT_INDEX DEFAULT_TRANSPARENT_INDEX | ||
|
||
// Gauges in the player select have an opaque background and are not transparent. | ||
#define GAUGE_TRANSPARENT_INDEX DEFAULT_NOT_TRANSPARENT | ||
|
||
#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
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.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please do not. see also #769 (merged)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This was temporary you can take it out when 769 is merged. Or I'll discard it it if 769 goes in first.