add openvr support, switch to 8.1 sdk, prepare for vr ui

This commit is contained in:
2018-10-28 00:29:09 +02:00
parent 4c41be1336
commit 0fff9f2010
19 changed files with 506 additions and 23 deletions

View File

@@ -113,6 +113,9 @@ void App::initAssets()
LOG("initializing assets create sampler");
sampler.create(GL_NEAREST);
sampler_stencil.create(GL_LINEAR, GL_REPEAT);
sampler_linear.create(GL_LINEAR);
m_face_plane.create<1>(2, 2);
LOG("initializing assets load uvs texture");
LOG("initializing assets completed");
}
@@ -235,12 +238,13 @@ void App::download(std::string url, std::string dest_filepath, std::function<voi
bool App::check_license()
{
// return true; // TODO: for distribuiton only
return true; // TODO: for distribuiton only
/*
CURL *curl = curl_easy_init();
if (curl)
{
std::string url = "http://panopainter.com/license/53C5DE19-7B8F-42B8-8399-C99D28B66401.php";
std::string url = "https://panopainter.com/license/53C5DE19-7B8F-42B8-8399-C99D28B66401.php";
//std::string url = "https://panopainter.com/license/E8EDC2FE-E1BD-4AB1-91BD-FCCD926739BD.php"; // wacom
//std::string url = "https://panopainter.com/license/A744FBA9-BC6C-43C8-BD24-0CCE24B3D985.php"; // others
@@ -260,10 +264,11 @@ bool App::check_license()
curl_easy_cleanup(curl);
LOG("License check: %s", ret.c_str());
if (err == CURLcode::CURLE_OK)
if (err == CURLcode::CURLE_OK && ret == "success")
return true;
}
return false;
*/
}
void App::upload(std::string filename, std::string name, std::function<void(float)> progress)
@@ -343,7 +348,7 @@ void App::init()
for (int i = 0; i < n_exts; i++)
{
std::string ext = (const char*)glGetStringi(GL_EXTENSIONS, i);
if (ext.find("debug") != std::string::npos)
//if (ext.find("debug") != std::string::npos)
{
LOG("%s", glGetStringi(GL_EXTENSIONS, i));
}