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
#pip install imgui[glfw] | |
import imgui | |
import glfw | |
import OpenGL.GL as gl | |
from imgui.integrations.glfw import GlfwRenderer | |
def impl_glfw_init(window_name="minimal ImGui/GLFW3 example", width=1280, height=720): | |
if not glfw.init(): | |
print("Could not initialize OpenGL context") |
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
use bevy::prelude::*; | |
pub struct Game; | |
struct Box(u8); | |
struct AddBoxEventTriggerState { | |
event_timer: Timer, | |
} | |
impl Default for AddBoxEventTriggerState { |
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
//! Barebones baseview imgui plugin | |
#[macro_use] | |
extern crate vst; | |
use imgui::*; | |
use baseview::AppRunner; | |
use raw_window_handle::RawWindowHandle; | |
use vst::buffer::AudioBuffer; |
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
desc: Varb 0.1 (DG) | |
slider1:0.5<0.0,1.0>Mix | |
slider2:0.2<0.0,1.0>Delay Size | |
slider4:0.9<0.6,1.5>Delay Delta | |
slider6:0.9<0.0,1.5>Decay Init | |
slider7:1.0<0.5,1.5>Decay Delta | |
slider11:16.0<0.0,64.0,1.0>Iterations |
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
/* | |
[dependencies] | |
cranelift = "0.76.0" | |
cranelift-module = "0.76.0" | |
cranelift-jit = "0.76.0" | |
*/ | |
use cranelift::{codegen::Context, prelude::*}; | |
use cranelift_jit::{JITBuilder, JITModule}; | |
use cranelift_module::{FuncId, Linkage, Module}; |
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
/* | |
[dependencies] | |
cranelift = "0.76.0" | |
cranelift-jit = "0.76.0" | |
cranelift-module = "0.76.0" | |
*/ | |
use cranelift::{ | |
codegen::{ | |
self, |
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
/* | |
[dependencies] | |
cranelift = "0.76.0" | |
cranelift-jit = "0.76.0" | |
cranelift-module = "0.76.0" | |
*/ | |
use cranelift::{ | |
codegen::{ | |
self, |
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
/* | |
[dependencies] | |
cranelift = "0.76.0" | |
cranelift-module = "0.76.0" | |
cranelift-jit = "0.76.0" | |
*/ | |
use cranelift::{ | |
codegen::{ir::immediates::Offset32, ir::ArgumentPurpose, Context}, | |
prelude::*, |
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
/* | |
[dependencies] | |
cranelift = "0.76.0" | |
cranelift-jit = "0.76.0" | |
cranelift-module = "0.76.0" | |
*/ | |
use cranelift::{ | |
codegen::{self, ir::immediates::Offset32}, | |
frontend::{FunctionBuilder, FunctionBuilderContext}, |
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
// License: Apache-2.0 / MIT | |
use bevy::core_pipeline::{ | |
draw_3d_graph, node, AlphaMask3d, Opaque3d, RenderTargetClearColors, Transparent3d, | |
}; | |
use bevy::prelude::*; | |
use bevy::reflect::TypeUuid; | |
use bevy::render::camera::{ActiveCamera, CameraTypePlugin, RenderTarget}; | |
use bevy::render::render_asset::RenderAssets; | |
use bevy::render::render_graph::{NodeRunError, RenderGraph, RenderGraphContext, SlotValue}; |
OlderNewer