Code Monkey home page Code Monkey logo

mandala's People

Contributors

lennylinux avatar rasa 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  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  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  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

mandala's Issues

Segmentation violation when running in xorg

Hi dude!
Sometimes I catch the following seg fault, after creating an app and playing with worlds, boxes, etc. It happens when I close the window.

(From inside an app generated via mandala-template):

$ gotask run xorg
OK Build the application for the given platforms.
libEGL warning: failed to create a pipe screen for i915
SIGSEGV: segmentation violation
PC=0xb30492c0
signal arrived during cgo execution

runtime.cgocall(0x804f920, 0xb7653eec)
/home/aded/var/src/go/src/pkg/runtime/cgocall.c:149 +0x10c fp=0xb7653ee0
github.com/remogatto/opengles2._Cfunc_glClear(0x4000)
github.com/remogatto/opengles2/_obj/_cgo_defun.c:200 +0x31 fp=0xb7653eec
github.com/remogatto/opengles2.Clear(0x4000)
/home/aded/dev/go/src/github.com/remogatto/opengles2/opengles2.go:148 +0x28 fp=0xb7653ef4
main.(_gameState).draw(0x18645080)
/home/aded/dev/go/src/aded.it/myapp/src/myapp/game.go:214 +0x28 fp=0xb7653f00
main.func·001(0xb7714850, 0x1861c210, 0x0, 0x0)
/home/aded/dev/go/src/aded.it/myapp/src/myapp/game.go:289 +0x171 fp=0xb7653f24
git.tideland.biz/goas/loop.func·002()
/home/aded/dev/go/src/git.tideland.biz/goas/loop/loop.go:186 +0x93 fp=0xb7653f90
git.tideland.biz/goas/loop.(_loop).recoverableLoop(0x1861c210)
/home/aded/dev/go/src/git.tideland.biz/goas/loop/loop.go:198 +0xb2 fp=0xb7653fc4
runtime.goexit()
/home/aded/var/src/go/src/pkg/runtime/proc.c:1394 fp=0xb7653fc8
created by git.tideland.biz/goas/loop.GoRecoverable
/home/aded/dev/go/src/git.tideland.biz/goas/loop/loop.go:160 +0xba

goroutine 1 [syscall]:
github.com/go-gl/glfw3._Cfunc_glfwTerminate(0x80544b2)
github.com/go-gl/glfw3/_obj/_cgo_defun.c:843 +0x31
github.com/go-gl/glfw3.Terminate()
/home/aded/dev/go/src/github.com/go-gl/glfw3/glfw.go:59 +0x1b
main.main()
/home/aded/dev/go/src/aded.it/myapp/src/myapp/main.go:90 +0x3b2

goroutine 3 [select]:
github.com/remogatto/mandala.func·002(0xb7714850, 0x1861c0f0, 0x0, 0x18640800)
/home/aded/dev/go/src/github.com/remogatto/mandala/resourcemanager.go:34 +0x191
git.tideland.biz/goas/loop.func·002()
/home/aded/dev/go/src/git.tideland.biz/goas/loop/loop.go:186 +0x93
git.tideland.biz/goas/loop.(*loop).recoverableLoop(0x1861c0f0)
/home/aded/dev/go/src/git.tideland.biz/goas/loop/loop.go:198 +0xb2
created by git.tideland.biz/goas/loop.GoRecoverable
/home/aded/dev/go/src/git.tideland.biz/goas/loop/loop.go:160 +0xba

goroutine 4 [syscall]:
runtime.goexit()
/home/aded/var/src/go/src/pkg/runtime/proc.c:1394

eax 0x2
ebx 0xb4b48000
ecx 0x1
edx 0xb75dc96c
edi 0x0
esi 0xb755c288
ebp 0x0
esp 0xb5afe25c
eip 0xb30492c0
eflags 0x10246
cs 0x73
fs 0x0
gs 0x33
exit status 2
FAIL Run the application on the given platforms.
2014/02/12 19:46:29 exit status 1

Bye

Support for OpenGLES3 ?

Hi Andrea,

I currently have a desktop application coded under OpenGL3 [1], and I want to embed it into Mandala [2].
Because the desktop version is based on go-gl/gl, I couldn't use remogatto/opengles2, there was too much changes. So I cloned go-gl/gl and hardly delete the code that doesn't exist in the OpenGLES implementation.
I tried first to compile under OpenGLES2 but I finally get stuck because of missing methods about vertex arrays (glBindVertexArray etc...). Indeed those methods are only here since OpenGLES3.
So I switched to OpenGLES3 but I still have compilation errors about the same methods.

Si I wonder if Mandala can support OpenGLES3 ?

[1] https://github.com/tbruyelle/gostuff/tree/opengl3/games/mozaik
[2] https://github.com/tbruyelle/mozaik

Rename the project

Few are going to take this project seriously with that name. You really should consider calling it something else.

Undefined reference to stderr

Not sure if it's related to mandala but when I'm really stuck here.
When I execute gotask run android (even with -a flag), I get the following errors :

$ gotask run android
# runtime/cgo
/home/tom/android-ndk-r9d/ndk-toolchain/bin/../lib/gcc/arm-linux-androideabi/4.6/../../../../arm-linux-androideabi/bin/ld: $WORK/runtime/cgo/_obj/gcc_linux_arm.o: in function _cgo_sys_thread_start:/home/tom/projects/goandroid/go/src/pkg/runtime/cgo/gcc_linux_arm.c:46: error: undefined reference to 'stderr'
/home/tom/android-ndk-r9d/ndk-toolchain/bin/../lib/gcc/arm-linux-androideabi/4.6/../../../../arm-linux-androideabi/bin/ld: $WORK/runtime/cgo/_obj/gcc_sharedlib_linux.o: in function x_cgo_lib_init_once:/home/tom/projects/goandroid/go/src/pkg/runtime/cgo/gcc_sharedlib_linux.c:109: error: undefined reference to 'stderr'
/home/tom/android-ndk-r9d/ndk-toolchain/bin/../lib/gcc/arm-linux-androideabi/4.6/../../../../arm-linux-androideabi/bin/ld: $WORK/runtime/cgo/_obj/gcc_sharedlib_linux.o: in function x_cgo_lib_init_done:/home/tom/projects/goandroid/go/src/pkg/runtime/cgo/gcc_sharedlib_linux.c:37: error: undefined reference to 'stderr'
/home/tom/android-ndk-r9d/ndk-toolchain/bin/../lib/gcc/arm-linux-androideabi/4.6/../../../../arm-linux-androideabi/bin/ld: $WORK/runtime/cgo/_obj/gcc_sharedlib_linux.o: in function x_cgo_lib_init:/home/tom/projects/goandroid/go/src/pkg/runtime/cgo/gcc_sharedlib_linux.c:127: error: undefined reference to 'stderr'
collect2: ld returned 1 exit status
exit status 2

I'm under Ubuntu 14.

OSX Build

I'm trying to build the Mandala samples under OSX.

The issue I have at this time is the OpenGL library links. The following commands fail :

$ go get github.com/remogatto/egl
# pkg-config --cflags egl
Package egl was not found in the pkg-config search path.
Perhaps you should add the directory containing `egl.pc'
to the PKG_CONFIG_PATH environment variable
No package 'egl' found
exit status 1
$ go get github.com/remogatto/opengles2
# github.com/remogatto/opengles2
../projects/go/src/github.com/remogatto/opengles2/opengles2.go:29:10: fatal error: 'GLES2/gl2.h' file not found
#include <GLES2/gl2.h>
         ^
1 error generated.

On OSX the OpenGL libraries are located under /System/Library/Frameworks/OpenGL.framework. This is the header files listed in that directory :

$ ls /System/Library/Frameworks/OpenGL.framework/Headers
CGLContext.h        CGLMacro.h      OpenGLAvailability.h    glext.h         glu.h
CGLCurrent.h        CGLRenderers.h      gl.h            gliContext.h        gluContext.h
CGLDevice.h     CGLTypes.h      gl3.h           gliDispatch.h       gluMacro.h
CGLIOSurface.h      OpenGL.h        gl3ext.h        gltypes.h

There is no glew.h or gl2.h so even if I create a symbolic link in /usr/local/include, it won't work.

Shortcuts for desktop window

A bunch of shortcuts are needed in order to interact with the desktop application mimicking the device. We need at least shortcuts for:

  • rotating the window to simulate the rotation of the device
  • pausing/resuming of the application
  • exiting from the application

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.