Shows the basic usage of OALplus by printing some infoCopyright 2008-2014 Matus Chochlik. Distributed under the Boost Software License, Version 1.0. (See accompanying file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
#include <iostream>
int main(void)
{
std::cout <<
"Vendor: " << context.
Vendor() << std::endl;
std::cout <<
"Version: " << context.
Version() << std::endl;
std::cout <<
"Renderer: " << context.
Renderer() << std::endl;
std::cout << "Device extensions:" << std::endl;
for(auto r=device.Extensions(); !r.Empty(); r.Next())
std::cout << '\t' << r.Front() << std::endl;
std::cout << "Context extensions:" << std::endl;
for(
auto r=context.
Extensions(); !r.Empty(); r.Next())
std::cout << '\t' << r.Front() << std::endl;
return 0;
}