GithubHelp home page GithubHelp logo

rlipsc / polymers Goto Github PK

View Code? Open in Web Editor NEW
23.0 23.0 1.0 283 KB

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

Nim 100.00%
chipmunk2d databases ecs entity-component-system game-development gamedev graphics json-rpc opengl physics tcp-ip udp webservers

polymers's People

Contributors

0xsmt avatar rlipsc avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

Forkers

0xsmt

polymers's Issues

Compile Error in ecs_opengl.nim (Ubuntu 20.04, Nim 1.4.4)

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!

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.