yesss
This commit is contained in:
parent
89773f7117
commit
f07d641003
2 changed files with 20 additions and 5 deletions
2
external/skr
vendored
2
external/skr
vendored
|
|
@ -1 +1 @@
|
|||
Subproject commit 2472372886571bcc38893e2c2424ce4f198f16a7
|
||||
Subproject commit 021e127aa4b8f85e6cce50a6ff19e4323fa22b36
|
||||
23
main/main.c
23
main/main.c
|
|
@ -33,10 +33,25 @@ int main(void) {
|
|||
program.Backend.GL.ID = prog;
|
||||
|
||||
static SkrVertex vertices[] = {
|
||||
{{0.5f, 0.5f, 0.0f}, {1.0f, 0.0f, 0.0f}, {0}, {1.0f, 1.0f}},
|
||||
{{0.5f, -0.5f, 0.0f}, {0.0f, 1.0f, 0.0f}, {0}, {1.0f, 0.0f}},
|
||||
{{-0.5f, -0.5f, 0.0f}, {0.0f, 0.0f, 1.0f}, {0}, {0.0f, 0.0f}},
|
||||
{{-0.5f, 0.5f, 0.0f}, {1.0f, 1.0f, 0.0f}, {0}, {0.0f, 1.0f}},
|
||||
{.Position = {0.5f, 0.5f, 0.0f},
|
||||
.Normal = {0.0f, 0.0f, 1.0f},
|
||||
.UV = {1.0f, 1.0f},
|
||||
.Color = {1.0f, 0.0f, 0.0f}},
|
||||
|
||||
{.Position = {0.5f, -0.5f, 0.0f},
|
||||
.Normal = {0.0f, 0.0f, 1.0f},
|
||||
.UV = {1.0f, 0.0f},
|
||||
.Color = {0.0f, 1.0f, 0.0f}},
|
||||
|
||||
{.Position = {-0.5f, -0.5f, 0.0f},
|
||||
.Normal = {0.0f, 0.0f, 1.0f},
|
||||
.UV = {0.0f, 0.0f},
|
||||
.Color = {0.0f, 0.0f, 1.0f}},
|
||||
|
||||
{.Position = {-0.5f, 0.5f, 0.0f},
|
||||
.Normal = {0.0f, 0.0f, 1.0f},
|
||||
.UV = {0.0f, 1.0f},
|
||||
.Color = {1.0f, 1.0f, 0.0f}},
|
||||
};
|
||||
|
||||
static unsigned int indices[] = {0, 1, 3, 1, 2, 3};
|
||||
|
|
|
|||
Loading…
Reference in a new issue