This file contains hidden or 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
| <?php | |
| set_time_limit(-1); | |
| if(isset($_GET['ld']) and is_numeric($_GET['ld'])) | |
| $TARGETLD = $_GET['ld']; | |
| else | |
| $TARGETLD = 21; | |
| $compolink = "http://ludumdare.com/compo/ludum-dare-$TARGETLD/"; | |
This file contains hidden or 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
| taskkill /f /im msbuild.exe | |
| taskkill /f /im cl.exe | |
| taskkill /f /im link.exe |
This file contains hidden or 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
| // LambdaTestbed.cpp : Defines the entry point for the console application. | |
| // | |
| #include "stdafx.h" | |
| #include <functional> | |
| #include <iostream> | |
| struct NakedCallable | |
| { |
This file contains hidden or 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
| uniform highp vec2 resolution; | |
| uniform sampler2D texture; | |
| void main () | |
| { | |
| highp vec2 tmpvar_1_2_1_2_1_2_1_2_1_2_1_2_1_2_1_2_1_2_1_2_1_2_1_2_1_2_1_2_1_2_1_2_1_2_1_2_1_2_1_2_1_2_1_2_1_2_1_2_1_2_1_2_1_2_1_2_1_2_1_2_1_2_1_2_1_2_1_2_1_2_1_2_1_2_1_2_1_2_1_2_1_2_1_2_1_2_1; | |
| lowp vec4 tmpvar_3_1_2_1_2_1_2_1_2_1_2_1_2_1_2_1_2_1_2_1_2_1_2_1_2_1_2_1_2_1_2_1_2_1_2_1_2_1_2_1_2_1_2_1_2_1_2_1_2_1_2_1_2_1_2_1_2_1_2_1_2_1_2_1_2_1_2_1_2_1_2_1_2_1_2_1_2_1_2_1_2_1_2_1_2_1_2; | |
| tmpvar_1_2_1_2_1_2_1_2_1_2_1_2_1_2_1_2_1_2_1_2_1_2_1_2_1_2_1_2_1_2_1_2_1_2_1_2_1_2_1_2_1_2_1_2_1_2_1_2_1_2_1_2_1_2_1_2_1_2_1_2_1_2_1_2_1_2_1_2_1_2_1_2_1_2_1_2_1_2_1_2_1_2_1_2_1_2_1 = (gl_FragCoord.xy / resolution); | |
| lowp vec4 tmpvar_3; | |
| tmpvar_3 = texture2D (texture, tmpvar_1_2_1_2_1_2_1_2_1_2_1_2_1_2_1_2_1_2_1_2_1_2_1_2_1_2_1_2_1_2_1_2_1_2_1_2_1_2_1_2_1_2_1_2_1_2_1_2_1_2_1_2_1_2_1_2_1_2_1_2_1_2_1_2_1_2_1_2_1_2_1_2_1_2_1_2_1_2_1_2_1_2_1_2_1_2_1); | |
| if ((tmpvar_3.x == 1000.0)) { |
This file contains hidden or 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
| RenderContext.pFrame_->queueRenderNode( Sort, | |
| [ | |
| VertexDecl = VertexDecl_.get(), | |
| VertexBuffer = VertexBuffer_.get(), | |
| NoofSegments = NoofSegments_ | |
| ] ( RsContext* Context ) | |
| { | |
| Context->setVertexDeclaration( VertexDecl ); | |
| Context->setVertexBuffer( 0, VertexBuffer, sizeof( Vertex ) ); | |
| Context->drawPrimitives( RsTopologyType::TRIANGLE_STRIP, 0, NoofSegments * 2 ); |
This file contains hidden or 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
| // Add editor. | |
| Class.addAttribute( | |
| new DsImGuiFieldEditor( | |
| []( DsImGuiFieldEditor* ThisFieldEditor, std::string Name, void* Object, const ReClass* Class, ReFieldFlags Flags ) | |
| { | |
| ScnTexture* Value = (ScnTexture*)Object; | |
| if( Value != nullptr ) | |
| { | |
| auto StateStorage = ImGui::GetStateStorage(); | |
| int MinWidth = 256; |
This file contains hidden or 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
| extern crate sdl2; | |
| use sdl2::pixels::Color; | |
| use sdl2::event::Event; | |
| use sdl2::keyboard::Keycode; | |
| use sdl2::rect::Rect; | |
| const BORDER: i32 = 32; | |
| const WIDTH: i32 = 1024; | |
| const HEIGHT: i32 = 768; |
This file contains hidden or 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
| extern crate sdl2; | |
| use sdl2::pixels::Color; | |
| use sdl2::event::Event; | |
| use sdl2::keyboard::Keycode; | |
| use sdl2::rect::Rect; | |
| const BORDER: i32 = 32; | |
| const WIDTH: i32 = 1024; | |
| const HEIGHT: i32 = 768; |
This file contains hidden or 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
| fn get_piece(piece: i32) -> String | |
| { | |
| let mut string = String::new(); | |
| match piece | |
| { | |
| -1 => string.push_str(" "), | |
| 0 => string.push_str("O"), | |
| 1 => string.push_str("X"), | |
| _ => panic!("Invalid piece"), | |
| }; |
This file contains hidden or 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
| /// Core undo/redo code. | |
| typedef std::function< void() > ActionCallback; | |
| struct EditorAction | |
| { | |
| BcU32 ID_ = 0; | |
| const char* Name_ = nullptr; | |
| ActionCallback Do_; | |
| ActionCallback Undo_; |
OlderNewer