-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Added functions for plotting the path of a square and an arc. Added pen_t to create an outline around the geometry. Added line drawing function. Updated backend implementation for opengl3. Updated backend implementation for directx 9. Updated backend implementation for opengl11. Added quad-gradient and sdf shaders. Added sdf (so far, only for truetype).
- Loading branch information
1 parent
c81820a
commit 50634e0
Showing
190 changed files
with
11,636 additions
and
3,584 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,15 @@ | ||
build/ | ||
.vs/ | ||
*.user | ||
src/renderer/null-renderer-directx11/src/shaders/pixel-sampler/compiled/ | ||
src/renderer/null-renderer-directx11/src/shaders/pixel-without-sampler/compiled/ | ||
src/renderer/null-renderer-directx11/src/shaders/vertex/compiled/ | ||
|
||
src/backends/null-backend-directx9/src/shaders/compiled-objects/passthrough/compiled | ||
src/backends/null-backend-directx9/src/shaders/compiled-objects/passthrough-color/compiled | ||
src/backends/null-backend-directx9/src/shaders/compiled-objects/passthrough-texture/compiled | ||
src/backends/null-backend-directx9/src/shaders/compiled-objects/quad-gradient/compiled | ||
src/backends/null-backend-directx9/src/shaders/compiled-objects/sdf/compiled | ||
|
||
src/backends/null-backend-directx11/src/shaders/compiled-objects/passthrough/compiled | ||
src/backends/null-backend-directx11/src/shaders/compiled-objects/passthrough-color/compiled | ||
src/backends/null-backend-directx11/src/shaders/compiled-objects/passthrough-texture/compiled | ||
src/backends/null-backend-directx11/src/shaders/compiled-objects/quad-gradient/compiled | ||
src/backends/null-backend-directx11/src/shaders/compiled-objects/sdf/compiled |
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 |
---|---|---|
@@ -1,25 +1,27 @@ | ||
# null-render | ||
<p align="center"> | ||
<img src="https://user-images.githubusercontent.com/60057961/205475625-1f49c685-4330-47f9-b583-30c094491026.png"> | ||
<img src="https://i.imgur.com/9R6S6I6.png"> | ||
</p> | ||
This is an attempt to translate part of my previous null-gui project to c++20. | ||
Heavily redesigned ImGui renderer with a lot of new features. | ||
|
||
At the moment, all more or less popular backends are implemented (dx9/dx11/opengl 3), in the future different functions will be added (shaders, maybe something else). | ||
# supported renderers and features | ||
|
||
I tried to translate the entire ImGui render to c++20, most likely I didn’t get it very well, so if you notice some c-style code in the project, or incorrect use of stl - welcome to the issue or pull request tab, I will appreciate any help. | ||
| backends | base render | shaders | msaa | | ||
| ------------- |:-----------:|:-------:|:----:| | ||
| directx 11 | ✔️ | ✔️ | ✔️ | | ||
| directx 9 | ✔️ | ✔️ | ✔️ | | ||
| opengl 3 | ✔️ | ✔️ | ✔️ | | ||
|
||
# supported renderers and features | ||
- ### directx9 | ||
- base render | ||
- ### directx11 | ||
- base render | ||
- ### opengl3 | ||
- base render | ||
# msaa example | ||
<p float="left"> | ||
<img width=250 src="https://i.imgur.com/pQJvFcA.png"> | ||
<img width=250 src="https://i.imgur.com/i0lurGn.png"> | ||
</p> | ||
|
||
# opengl3 renderer | ||
To connect opengl3-renderer you need: | ||
- project properties->resources->additional include directories: specify the path to the file "null-renderer-opengl3-resources.rc" | ||
- create a .rc file in the project and include "null-renderer-opengl3-resources.rc" into it | ||
- project properties->resources->additional include directories: specify the path to the file "null-backend-opengl3-resources.rc" | ||
- create a .rc file in the project and include "null-backend-opengl3-resources.rc" into it | ||
|
||
# dependencies | ||
[null-sdk](https://github.com/nullptr-sources/null-sdk) |
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.