jackmott / easygl Goto Github PK
View Code? Open in Web Editor NEWa typesafe opengl wrapper for the nim language
License: MIT License
a typesafe opengl wrapper for the nim language
License: MIT License
I tried to compile the hello_triangle.nim
example but I couldn't compile it due to this line.
The UseProgram
wrapper procedure is actually just called Use
(see here)
I would rename Use
to be UseProgram
but you could also change the procedure in hello_triangle.nim
to be Use
. I didn't a pull request because I'm not sure which you would prefer.
This is pasted from my Terminal. I don't know how to read this error message :(.
Shader Compile Error (/home/mfg/Documents/easygl/examples/advanced_opengl/shaders/anti_aliasing.vert):
#version 330 core
layout (location = 0) in vec3 aPos;
uniform mat4 model;
uniform mat4 view;
uniform mat4 projection;
void main()
{
gl_Position = projection * view * model * vec4(aPos, 1.0);
}
Shader Compile Error (/home/mfg/Documents/easygl/examples/advanced_opengl/shaders/anti_aliasing.frag):
e
layout (location = 0) in vec3 aPos;
uniform mat4 model;
uniform mat4 view;
uniform mat4 projection;
void main()
{
gl_Position = projection * view * model * vec4(aPos, 1.0);
}
Link Error:
on = 0) in vec3 aPos;
uniform mat4 model;
uniform mat4 view;
uniform mat4 projection;
void main()
{
gl_Position = projection * view * model * vec4(aPos, 1.0);
}
..\..\src\easygl.nim(397, 30) Error: type mismatch: got <type GLfloat> but expected 'GLenum = distinct uint32'
I tried to change to
when T is float32:
discard vertexType.GL_FLOAT
it compiles, but fails with invalid enum as expected
The module is not listed on https://nimble.directory. Listing it there would greatly improve discoverability and ease of installation.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.