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
// \LICENCE WTFPL | |
// Denis Colesnicov <eugustus@gmail.com> | |
#include <GL/glut.h> | |
#include <iostream> | |
#include <osg/Config> | |
#include <osgViewer/Viewer> | |
#include <osgViewer/ViewerEventHandlers> |
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
public static void switchTo2D() { | |
if (currentRenderDimension != Dimension.DIM_2) { | |
glBlendFunc(GL_SRC_ALPHA, GL_ONE_MINUS_SRC_ALPHA); | |
glEnable(GL_BLEND); | |
glDisable(GL_CULL_FACE); | |
glDisable(GL_DEPTH_TEST); | |
glMatrixMode(GL_MODELVIEW); | |
glMatrixMode(GL_PROJECTION); | |
glLoadIdentity(); |
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
#pragma once | |
#include "IconsFontAwesome.h" // from https://github.com/juliettef/IconFontCppHeaders | |
namespace ImGui | |
{ | |
inline void SetupImGuiStyle( bool bStyleDark_, float alpha_ ) | |
{ |
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
/* | |
* Considerations on the possible implementation of word-wrap text for ImGui :: InputTextMultiline. | |
* | |
* Implements a "hard" line wrapping depending on the length of the text. | |
* | |
* Use, copying, modification and distribution without any liability to the author is possible. | |
* | |
* The discussion leads here: https://github.com/ocornut/imgui/issues/952 | |
* | |
* But it is still a problems: |
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
/** | |
* @file Singleton.cpp part of @file Singleton.hpp | |
* @version 2 | |
* | |
* @author Denis Colesnicov <eugustus@gmail.com> | |
* @date 2017/01/15 | |
* | |
* @copyright WTFPL | |
*/ |
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
/** | |
* @file Loader.cpp part of @file Loader.hpp | |
* | |
* @author Denis Colesnicov <eugustus@gmail.com> | |
* @date 2017/01/15 | |
* | |
* @copyright MIT | |
*/ | |
#include "LibraryLoader.h" |
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 "imguiSFML.h" | |
#include <SFML/OpenGL.hpp> | |
#include <SFML/Graphics/Color.hpp> | |
#include <SFML/Graphics/RenderTarget.hpp> | |
#include <SFML/Graphics/RenderWindow.hpp> | |
#include <SFML/Graphics/Sprite.hpp> | |
#include <SFML/Graphics/Texture.hpp> | |
#include <SFML/Window/Window.hpp> |
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
/* OpenSceneGraph example, osgviewerSFML. | |
* | |
* Permission is hereby granted, free of charge, to any person obtaining a copy | |
* of this software and associated documentation files (the "Software"), to deal | |
* in the Software without restriction, including without limitation the rights | |
* to use, copy, modify, merge, publish, distribute, sublicense, and/or sell | |
* copies of the Software, and to permit persons to whom the Software is | |
* furnished to do so, subject to the following conditions: | |
* | |
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR |
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
short ConvertRGB(byte R, byte G, byte B) { | |
return (((R & 0xF8) << 8) | ((G & 0xFC) << 3) | (B >> 3)); | |
} |
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
/********************************************************************** | |
* Description : Rotacni enkoder pro Raspberry PI 2 | |
* Author : Denis Colesnicov | |
* E-mail : eugustus@gmail.com | |
* Notice : Original code https://www.sunfounder.com/learn/Super_Kit_V2_for_RaspberryPi/lesson-8-rotary-encoder-super-kit-for-raspberrypi.html | |
* Date : 2017/11/17 | |
**********************************************************************/ | |
/********************************************************************** | |
************************* TODO *************************************** |
OlderNewer