rlipsc / polymers Goto Github PK
View Code? Open in Web Editor NEWA library of components and systems for use with the Polymorph ECS, covering graphics, physics, networking, database queries, console IO, and more.
License: Apache License 2.0
A library of components and systems for use with the Polymorph ECS, covering graphics, physics, networking, database queries, console IO, and more.
License: Apache License 2.0
I tried running the ecs_opengl.nim
example directly, but got the following error:
/home/smt/Code/nim/polymorph_tests/test1.nim(173, 29) Error: type mismatch: got <ShaderProgramId, int literal(10), array[0..3, GLfloat], array[0..3, GLfloat]>
but expected one of:
template `.`(instance: AttractToMouseInstance; field: untyped): untyped
first type mismatch at position: 1
required type for instance: AttractToMouseInstance
but expression 'shaderProg' is of type: ShaderProgramId
template `.`(instance: AvoidMouseInstance; field: untyped): untyped
first type mismatch at position: 1
required type for instance: AvoidMouseInstance
but expression 'shaderProg' is of type: ShaderProgramId
template `.`(instance: ModelInstance; field: untyped): untyped
first type mismatch at position: 1
required type for instance: ModelInstance
but expression 'shaderProg' is of type: ShaderProgramId
template `.`(instance: PositionInstance; field: untyped): untyped
first type mismatch at position: 1
required type for instance: PositionInstance
but expression 'shaderProg' is of type: ShaderProgramId
template `.`(instance: SpinInstance; field: untyped): untyped
first type mismatch at position: 1
required type for instance: SpinInstance
but expression 'shaderProg' is of type: ShaderProgramId
template `.`(instance: VelocityInstance; field: untyped): untyped
first type mismatch at position: 1
required type for instance: VelocityInstance
but expression 'shaderProg' is of type: ShaderProgramId
expression: makeCircleModel(shaderProg, 10, [GLfloat(1.0), 0.0, 0.0, 1.0],
[GLfloat(0.5), 0.0, 0.5, 1.0])
For context, running Pop_OS! 20.04 (Ubuntu repositories), not sure if you've done a lot of testing on Linux though, given the mentions of DLL files.
Nim version:
Nim Compiler Version 1.4.4 [Linux: amd64]
Compiled at 2021-02-23
Copyright (c) 2006-2020 by Andreas Rumpf
git hash: 2ff517462bf8609b30e6134c96658aa7912b628a
active boot switches: -d:release
Any advice here would be helpful.
Super impressed by your libraries!
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.