/SleekThink.depend
83555,7 → 83555,7
"../define.h"
<math.h>
 
1423788568 /mnt/windows1/Development/Project/Xtrem-Coder/Sleek Think/src/sleek/define.h
1453777819 /mnt/windows1/Development/Project/Xtrem-Coder/Sleek Think/src/sleek/define.h
"compile.h"
 
1453712621 /mnt/windows1/Development/Project/Xtrem-Coder/Sleek Think/src/sleek/compile.h
83976,7 → 83976,7
"GameCore.h"
"GameIntro.h"
 
1453723893 source:/mnt/windows1/Development/Project/Xtrem-Coder/Sleek Think/src/app/GameMenu.cpp
1453777765 source:/mnt/windows1/Development/Project/Xtrem-Coder/Sleek Think/src/app/GameMenu.cpp
"GameCore.h"
"GameMenu.h"
"../sleek/loader/texture_loader.h"
84321,7 → 84321,7
"ogl.h"
"../shader.h"
 
1453774736 source:/mnt/windows1/Development/Project/Xtrem-Coder/Sleek Think/src/sleek/driver/ogl3/ogl_driver.cpp
1453777720 source:/mnt/windows1/Development/Project/Xtrem-Coder/Sleek Think/src/sleek/driver/ogl3/ogl_driver.cpp
"../../device/device.h"
"ogl_context.h"
"ogl_driver.h"
/SleekThink.layout
Cannot display: file marked as a binary type.
svn:mime-type = application/xml
/bin/SleekThink
Cannot display: file marked as a binary type.
svn:mime-type = application/x-executable
/bin/gmon.out
Cannot display: file marked as a binary type.
svn:mime-type = application/octet-stream
/src/app/GameMenu.cpp
102,17 → 102,17
 
void GameMenu::render() noexcept
{
// if(background)
// {
// float aspect = float(background->getOriginalSize().x) / float(background->getOriginalSize().y);
// auto size = sleek::math::vector2di(screen->getInfo().size.x, screen->getInfo().size.y);
// auto pos = sleek::math::vector2di(screen->getInfo().size.x, screen->getInfo().size.x / aspect);
//
// core->getDriver()->drawTextureScale(
// background.get(), (size-pos)/2,
// sleek::math::vector3df(0, 0, 0),
// sleek::math::vector3df(pos.x, pos.y, 0)
// );
// }
if(background)
{
float aspect = float(background->getOriginalSize().x) / float(background->getOriginalSize().y);
auto size = sleek::math::vector2di(screen->getInfo().size.x, screen->getInfo().size.y);
auto pos = sleek::math::vector2di(screen->getInfo().size.x, screen->getInfo().size.x / aspect);
 
core->getDriver()->drawTextureScale(
background.get(), (size-pos)/2,
sleek::math::vector3df(0, 0, 0),
sleek::math::vector3df(pos.x, pos.y, 0)
);
}
}
}
/src/sleek/define.h
25,7 → 25,7
static constexpr float DegToRad = PI/180.f;
static constexpr float RadToDeg = PI*180.f;
 
static constexpr const char *version = "0.3";
static constexpr const char *version = "0.4";
static constexpr const char *engine_name = "SleekThink";
static constexpr const char *engine_auth = "Jehan-Antoine Vayssade";
 
/src/sleek/driver/ogl3/ogl_driver.cpp
507,10 → 507,10
mat->Texture[stage]->unbind();
}
}
glDisable(GL_BLEND);
}
 
_glState[bool(i.get())](GL_BLEND);
mat = i;
_glState[bool(mat.get())](GL_BLEND);
 
if(i)
{
528,12 → 528,13
/////////////////////////////////////////
 
static GLenum _cull[] = {
GL_NONE, GL_BACK,
0, GL_BACK,
GL_FRONT, 0,
GL_FRONT_AND_BACK
};
 
glCullFace(_cull[i->fac]);
if(i->fac != rfc_off)
glCullFace(_cull[i->fac]);
 
/////////////////////////////////////////
 
562,8 → 563,6
}
}
}
 
mat = i;
}
 
std::shared_ptr<material> ogl_driver::getActiveMaterial() const noexcept