Permalink
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
opengl: render triangulated lines
Workaround for glLineWidth always == 1f on some systems
- Loading branch information
Showing
with
73 additions
and 61 deletions.
- +2 −2 data/shader/render.shader
- +35 −31 src/device/gpu/gpu.cpp
- +1 −3 src/device/gpu/registers.h
- +20 −25 src/renderer/opengl/opengl.cpp
- +13 −0 src/renderer/opengl/shader/attribute.cpp
- +2 −0 src/renderer/opengl/shader/attribute.h
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
@@ -11,4 +11,6 @@ class Attribute { | ||
void enable(); | ||
void disable(); | ||
void pointer(GLint size, GLenum type, GLsizei stride, uintptr_t pointer); | ||
|
||
static size_t getSize(GLenum type); | ||
}; |