[DEV] start wayland port

This commit is contained in:
Edouard DUPIN 2017-01-11 23:00:35 +01:00
parent d623be0f91
commit 080f51add7
3 changed files with 1429 additions and 3 deletions

File diff suppressed because it is too large Load Diff

View File

@ -64,7 +64,11 @@ def configure(target, my_module):
if "Web" in target.get_type():
my_module.add_src_file('gale/context/SDL/Context.cpp')
elif "Linux" in target.get_type():
my_module.add_src_file('gale/context/X11/Context.cpp')
# TODO : Do it better ...
if False:
my_module.add_src_file('gale/context/X11/Context.cpp')
else:
my_module.add_src_file('gale/context/wayland/Context.cpp')
# check if egami is present in the worktree: this is for the icon parsing ...
my_module.add_optionnal_depend('egami', ["c++", "-DGALE_BUILD_EGAMI"])
elif "Windows" in target.get_type():
@ -157,7 +161,14 @@ def configure(target, my_module):
"SDL"
])
elif "Linux" in target.get_type():
pass
if False:
my_module.add_depend("X11")
else:
my_module.add_depend([
'wayland',
'egl',
'gles2'
])
elif "Android" in target.get_type():
my_module.add_depend(["SDK", "jvm-basics"])
# add tre creator of the basic java class ...

View File

@ -98,7 +98,7 @@ class MainApplication : public gale::Application {
mat4 tmpMatrix = projMatrix * camMatrix;
m_GLprogram->uniformMatrix(m_GLMatrix, tmpMatrix);
#if 0
#if 1
// position:
m_GLprogram->sendAttributePointer(m_GLPosition, m_verticesVBO, GALE_SAMPLE_VBO_VERTICES);
// color: