EGLplus (0.52.0) a C++ wrapper for EGL

eglplus/001_string_queries.cpp

Shows very basic usage of EGLplus by printing some informationCopyright 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 <eglplus/egl.hpp>
#include <eglplus/all.hpp>
#include <iostream>
int main(void)
{
// check for client extensions
{
std::cout << "Client extensions:" << std::endl;
for(auto r=eglplus::LibEGL::ClientExtensions(); !r.Empty(); r.Next())
std::cout << '\t' << r.Front() << std::endl;
}
else std::cout << "No client extensions." << std::endl;
// open the default display
// initialize the library
eglplus::LibEGL egl(display);
//
// print some info
std::cout << "Vendor: " << egl.Vendor() << std::endl;
std::cout << "Version: " << egl.Version() << std::endl;
//
std::cout << "Client APIs:" << std::endl;
for(auto r=egl.ClientAPIs(); !r.Empty(); r.Next())
std::cout << '\t' << r.Front() << std::endl;
//
std::cout << "Extensions:" << std::endl;
for(auto r=egl.Extensions(); !r.Empty(); r.Next())
std::cout << '\t' << r.Front() << std::endl;
//
return 0;
}

Copyright © 2010-2014 Matúš Chochlík, University of Žilina, Žilina, Slovakia.
<matus.chochlik -at- fri.uniza.sk>
<chochlik -at -gmail.com>
Documentation generated on Mon Sep 22 2014 by Doxygen (version 1.8.6).