Skip to content

Instantly share code, notes, and snippets.

@RomiTT
RomiTT / dxgl.c
Created March 4, 2020 14:11 — forked from mmozeiko/dxgl.c
WGL_NV_DX_interop2 example
#define COBJMACROS
#define INITGUID
#include <intrin.h>
#include <windows.h>
#include <d3d11.h>
#include <gl/GL.h>
#include "glext.h" // https://www.opengl.org/registry/api/GL/glext.h
#include "wglext.h" // https://www.opengl.org/registry/api/GL/wglext.h
@RomiTT
RomiTT / TextureArrayShader.frag
Created March 4, 2020 14:34 — forked from mantissa/TextureArrayShader.frag
GL_TEXTURE_2D_ARRAY in OpenFrameworks
#version 150
#define MAX_TEXTURES 2
uniform sampler2DArray textures;
uniform int texID;
in vec2 vTexCoord;
@RomiTT
RomiTT / gist:2b4ccc7bca41a1d58ae14a130e28939d
Created March 17, 2020 15:12 — forked from Madsy/gist:6980061
Working multi-threading two-context OpenGL example with GLFW 3.0.3 and GLEW 1.8
#include <GL/glew.h>
#include <GLFW/glfw3.h>
#include <vector>
#include <cmath>
#include <cstdio>
#include <limits>
#include <chrono>
#include <thread>
#include <mutex>
@RomiTT
RomiTT / XAML Storyboard with path data.xaml
Created October 14, 2020 09:10
XAML Storyboard with path data #XAML
<ObjectAnimationUsingKeyFrames Storyboard.TargetName="playShape"
Storyboard.TargetProperty="Data"
Duration="0:0:0.5">
<ObjectAnimationUsingKeyFrames.KeyFrames>
<DiscreteObjectKeyFrame KeyTime="0:0:0">
<DiscreteObjectKeyFrame.Value>
<Geometry>M 0,0 0,20 14,10 14,10 L 0,0</Geometry>
</DiscreteObjectKeyFrame.Value>
</DiscreteObjectKeyFrame>
<DiscreteObjectKeyFrame KeyTime="0:0:0.5">
@RomiTT
RomiTT / JavaWithGroovy.java
Last active December 9, 2021 03:51
Java with Groovy script #java #groovy
package hello.hellospring.controller;
import groovy.lang.*;
import groovy.util.GroovyScriptEngine;
import hello.hellospring.scriptRoots.ScriptRoot1;
import hello.hellospring.util.TaxCalculator;
import org.codehaus.groovy.control.CompilerConfiguration;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.GetMapping;