This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include "SkCanvas.h" | |
#include "SkGraphics.h" | |
#include "SkImageEncoder.h" | |
#include "SkString.h" | |
#include "SkTemplates.h" | |
int main (int argc, char * const argv[]) { | |
// | |
SkAutoGraphics ag; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
QFile file(":/qss/default.qss"); | |
file.open(QFile::ReadOnly); | |
QString styleSheet = QLatin1String(file.readAll()); | |
setStyleSheet(styleSheet); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
QSettings settings("/home/steven/Desktop/dolphin.desktop", QSettings::IniFormat); | |
settings.beginGroup("Desktop Entry"); | |
qDebug() << settings.value("Name").toString(); | |
qDebug() << settings.value("Exec").toString(); | |
qDebug() << settings.value("Icon").toString(); | |
qDebug() << settings.value("Type").toString(); | |
// Defect cant git list | |
qDebug() << settings.value("Categories").toString(); | |
qDebug() << settings.value("GenericName").toString(); | |
qDebug() << settings.value("Terminal").toString(); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <QtXml> | |
#include <iostream> | |
int main(int argc, char *argv[]) | |
{ | |
QDomDocument doc("mydoc"); | |
QFile file("shared-mime-info.xml"); | |
if(!file.open(QFile::ReadOnly | QFile::Text)) return 1; | |
if(!doc.setContent(&file)) { | |
file.close(); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <SFML/Graphics.hpp> | |
#include "SkCanvas.h" | |
#include "SkGraphics.h" | |
#include "SkImageEncoder.h" | |
#include "SkString.h" | |
#include "SkTemplates.h" | |
#include "SkTypeface.h" | |
#include <iostream> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// g++ main.cpp -o main -lsfml-window -lsfml-graphics -lsfml-system -losg -losgDB -losgGA -losgUtil | |
#include <SFML/Graphics.hpp> | |
#include <osgUtil/SceneView> | |
#include <osg/Node> | |
#include <osg/CameraNode> | |
#include <osg/Group> | |
#include <osgDB/ReadFile> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//////////////////////////////////////////////////////////// | |
// Headers | |
//////////////////////////////////////////////////////////// | |
#include <SFML/Graphics.hpp> | |
#include <SFML/OpenGL.hpp> | |
#include <horde3d/Horde3D.h> | |
#include <horde3d/Horde3DUtils.h> | |
#include <iostream> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// g++ main.cpp -o main `pkg-config --libs --cflags OGRE OIS` | |
#include <Ogre.h> | |
#include <OgreFrameListener.h> | |
#include <iostream> | |
using namespace Ogre; | |
// | |
class MyFrameListener : public FrameListener { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <SFML/Graphics.hpp> | |
#include <MCore.h> | |
#include <MEngine.h> | |
#include "MGLContext.h" | |
#include <iostream> | |
int main() | |
{ | |
// Create the main window | |
sf::RenderWindow window(sf::VideoMode(800, 600), "SFML window"); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//g++ main.cpp -o main -I/usr/include/panda3d -L/usr/lib/panda3d -I/usr/include/python2.7 | |
//-lp3framework -lpanda -lpandafx -lpandaexpress -lp3dtoolconfig -lp3dtool -lp3pystub -lp3direct | |
#include "pandaFramework.h" | |
#include "pandaSystem.h" | |
#include "genericAsyncTask.h" | |
#include "asyncTaskManager.h" |
OlderNewer