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 <osgViewer/Viewer> | |
#include <osgEarth/Notify> | |
#include <osgEarth/EarthManipulator> | |
#include <osgEarth/ExampleResources> | |
#include <osgEarth/MapNode> | |
#include <osgEarth/FeatureNode> | |
#include <osgEarth/TMS> | |
#include <iostream> | |
using namespace osgEarth; |
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
#ifdef WIN32 | |
#include <Windows.h> | |
#include <iostream> | |
#include <dbghelp.h> | |
#pragma comment(lib, "dbghelp.lib") | |
void printStackTrace() | |
{ | |
HANDLE process = GetCurrentProcess(); | |
SymInitialize(process, NULL, TRUE); |
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 <osgViewer/Viewer> | |
#include <osg/Geometry> | |
#include <osg/Texture2D> | |
#include <osgEarth/Utils> | |
#include <osgDB/ReadFile> | |
using namespace osgEarth; | |
int main(int argc, char** argv) |
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
<html> | |
<head> | |
<title>WebGPU Hello World</title> | |
<script> | |
async function main() { | |
const adapter = await window.navigator.gpu.requestAdapter(); | |
const device = await adapter.requestDevice(); | |
canvas = document.getElementById("gpu_canvas"); | |
context = canvas.getContext("webgpu"); |
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 <osg/ArgumentParser> | |
#include <osg/PagedLOD> | |
#include <osgDB/ReadFile> | |
#include <osgDB/WriteFile> | |
#include <iostream> | |
int | |
main(int argc, char** argv) | |
{ | |
osg::ArgumentParser arguments(&argc,argv); |
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
/** PASTE ME OVER osgearth_imgui.cpp **/ | |
#include <osgEarth/ImGui/ImGui> | |
#include <osgEarth/EarthManipulator> | |
#include <osgEarth/ImageLayer> | |
#include <osg/ImageSequence> | |
#include <osgDB/ReadFile> | |
#include <osgViewer/Viewer> |
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
/*** PASTE ME OVER osgearth_imgui.cpp ***/ | |
#include <osgEarth/ImGui/ImGui> | |
#include <osgEarth/EarthManipulator> | |
#include <osgEarth/ImageLayer> | |
#include <osg/ImageSequence> | |
#include <osgDB/ReadFile> | |
#include <osgViewer/Viewer> |
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 <osgViewer/Viewer> | |
#include <osgEarth/Notify> | |
#include <osgEarth/EarthManipulator> | |
#include <osgEarth/MapNode> | |
#include <osg/ImageSequence> | |
#include <osgDB/ReadFile> | |
#include <osgEarth/ImageLayer> | |
using namespace osgEarth; | |
using namespace osgEarth::Util; |
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
<terrainshader> | |
<code> | |
<![CDATA[ | |
#pragma version 330 | |
#pragma vp_location vertex_model | |
#pragma vp_entryPoint verticalScale | |
uniform float scale = 1.0; | |
vec3 vp_Normal; | |
float oe_terrain_getElevation(); | |
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 <osgEarth/EarthManipulator> | |
#include <osgEarth/ExampleResources> | |
#include <osgEarth/FeatureSource> | |
#include <osgEarth/TMS> | |
#include <osgEarth/FeatureImageLayer> | |
#include <osgEarth/TerrainEngineNode> | |
#include <osgEarth/ViewFitter> | |
#include <osgViewer/Viewer> | |
using namespace osgEarth; |
NewerOlder