Porting examples
- Test.Common now used for Examples project. - Testing examples alot.
1
.gitignore
vendored
@ -31,7 +31,6 @@ bld/
|
||||
[Dd]ebug
|
||||
[Oo]bj/
|
||||
[Ll]og/
|
||||
[Ee]xamples/
|
||||
|
||||
# Visual Studio 2015 cache/options directory
|
||||
.vs/
|
||||
|
81
Examples/Examples.projitems
Normal file
@ -0,0 +1,81 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<Project xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
|
||||
<PropertyGroup>
|
||||
<MSBuildAllProjects>$(MSBuildAllProjects);$(MSBuildThisFileFullPath)</MSBuildAllProjects>
|
||||
<HasSharedItems>true</HasSharedItems>
|
||||
<SharedGUID>36e54e2a-5899-4d4d-9d78-120db1b4c7b2</SharedGUID>
|
||||
</PropertyGroup>
|
||||
<PropertyGroup Label="Configuration">
|
||||
<Import_RootNamespace>Test.Common</Import_RootNamespace>
|
||||
</PropertyGroup>
|
||||
<ItemGroup>
|
||||
<Compile Include="$(MSBuildThisFileDirectory)audio\audio_module_playing.cs" />
|
||||
<Compile Include="$(MSBuildThisFileDirectory)audio\audio_music_stream.cs" />
|
||||
<Compile Include="$(MSBuildThisFileDirectory)audio\audio_raw_stream.cs" />
|
||||
<Compile Include="$(MSBuildThisFileDirectory)audio\audio_sound_loading.cs" />
|
||||
<Compile Include="$(MSBuildThisFileDirectory)core\core_2d_camera.cs" />
|
||||
<Compile Include="$(MSBuildThisFileDirectory)core\core_3d_camera_first_person.cs" />
|
||||
<Compile Include="$(MSBuildThisFileDirectory)core\core_3d_camera_free.cs" />
|
||||
<Compile Include="$(MSBuildThisFileDirectory)core\core_3d_mode.cs" />
|
||||
<Compile Include="$(MSBuildThisFileDirectory)core\core_3d_picking.cs" />
|
||||
<Compile Include="$(MSBuildThisFileDirectory)core\core_basic_window.cs" />
|
||||
<Compile Include="$(MSBuildThisFileDirectory)core\core_color_select.cs" />
|
||||
<Compile Include="$(MSBuildThisFileDirectory)core\core_drop_files.cs" />
|
||||
<Compile Include="$(MSBuildThisFileDirectory)core\core_gestures_detection.cs" />
|
||||
<Compile Include="$(MSBuildThisFileDirectory)core\core_input_gamepad.cs" />
|
||||
<Compile Include="$(MSBuildThisFileDirectory)core\core_input_keys.cs" />
|
||||
<Compile Include="$(MSBuildThisFileDirectory)core\core_input_mouse.cs" />
|
||||
<Compile Include="$(MSBuildThisFileDirectory)core\core_mouse_wheel.cs" />
|
||||
<Compile Include="$(MSBuildThisFileDirectory)core\core_random_values.cs" />
|
||||
<Compile Include="$(MSBuildThisFileDirectory)core\core_storage_values.cs" />
|
||||
<Compile Include="$(MSBuildThisFileDirectory)core\core_vr_simulator.cs" />
|
||||
<Compile Include="$(MSBuildThisFileDirectory)core\core_world_screen.cs" />
|
||||
<Compile Include="$(MSBuildThisFileDirectory)models\models_billboard.cs" />
|
||||
<Compile Include="$(MSBuildThisFileDirectory)models\models_box_collisions.cs" />
|
||||
<Compile Include="$(MSBuildThisFileDirectory)models\models_cubicmap.cs" />
|
||||
<Compile Include="$(MSBuildThisFileDirectory)models\models_geometric_shapes.cs" />
|
||||
<Compile Include="$(MSBuildThisFileDirectory)models\models_heightmap.cs" />
|
||||
<Compile Include="$(MSBuildThisFileDirectory)models\models_material_pbr.cs" />
|
||||
<Compile Include="$(MSBuildThisFileDirectory)models\models_mesh_generation.cs" />
|
||||
<Compile Include="$(MSBuildThisFileDirectory)models\models_mesh_picking.cs" />
|
||||
<Compile Include="$(MSBuildThisFileDirectory)models\models_obj_loading.cs" />
|
||||
<Compile Include="$(MSBuildThisFileDirectory)models\models_orthographic_projection.cs" />
|
||||
<Compile Include="$(MSBuildThisFileDirectory)models\models_skybox.cs" />
|
||||
<Compile Include="$(MSBuildThisFileDirectory)models\models_yaw_pitch_roll.cs" />
|
||||
<Compile Include="$(MSBuildThisFileDirectory)others\bunnymark.cs" />
|
||||
<Compile Include="$(MSBuildThisFileDirectory)physac\physics_demo.cs" />
|
||||
<Compile Include="$(MSBuildThisFileDirectory)physac\physics_friction.cs" />
|
||||
<Compile Include="$(MSBuildThisFileDirectory)physac\physics_movement.cs" />
|
||||
<Compile Include="$(MSBuildThisFileDirectory)physac\physics_restitution.cs" />
|
||||
<Compile Include="$(MSBuildThisFileDirectory)physac\physics_shatter.cs" />
|
||||
<Compile Include="$(MSBuildThisFileDirectory)shaders\shaders_custom_uniform.cs" />
|
||||
<Compile Include="$(MSBuildThisFileDirectory)shaders\shaders_model_shader.cs" />
|
||||
<Compile Include="$(MSBuildThisFileDirectory)shaders\shaders_postprocessing.cs" />
|
||||
<Compile Include="$(MSBuildThisFileDirectory)shaders\shaders_shapes_textures.cs" />
|
||||
<Compile Include="$(MSBuildThisFileDirectory)shapes\shapes_basic_shapes.cs" />
|
||||
<Compile Include="$(MSBuildThisFileDirectory)shapes\shapes_colors_palette.cs" />
|
||||
<Compile Include="$(MSBuildThisFileDirectory)shapes\shapes_lines_bezier.cs" />
|
||||
<Compile Include="$(MSBuildThisFileDirectory)shapes\shapes_logo_raylib.cs" />
|
||||
<Compile Include="$(MSBuildThisFileDirectory)shapes\shapes_logo_raylib_anim.cs" />
|
||||
<Compile Include="$(MSBuildThisFileDirectory)textures\textures_image_drawing.cs" />
|
||||
<Compile Include="$(MSBuildThisFileDirectory)textures\textures_image_generation.cs" />
|
||||
<Compile Include="$(MSBuildThisFileDirectory)textures\textures_image_loading.cs" />
|
||||
<Compile Include="$(MSBuildThisFileDirectory)textures\textures_image_processing.cs" />
|
||||
<Compile Include="$(MSBuildThisFileDirectory)textures\textures_image_text.cs" />
|
||||
<Compile Include="$(MSBuildThisFileDirectory)textures\textures_logo_raylib.cs" />
|
||||
<Compile Include="$(MSBuildThisFileDirectory)textures\textures_particles_blending.cs" />
|
||||
<Compile Include="$(MSBuildThisFileDirectory)textures\textures_raw_data.cs" />
|
||||
<Compile Include="$(MSBuildThisFileDirectory)textures\textures_rectangle.cs" />
|
||||
<Compile Include="$(MSBuildThisFileDirectory)textures\textures_srcrec_dstrec.cs" />
|
||||
<Compile Include="$(MSBuildThisFileDirectory)textures\textures_to_image.cs" />
|
||||
<Compile Include="$(MSBuildThisFileDirectory)text\text_bmfont_ttf.cs" />
|
||||
<Compile Include="$(MSBuildThisFileDirectory)text\text_bmfont_unordered.cs" />
|
||||
<Compile Include="$(MSBuildThisFileDirectory)text\text_font_sdf.cs" />
|
||||
<Compile Include="$(MSBuildThisFileDirectory)text\text_format_text.cs" />
|
||||
<Compile Include="$(MSBuildThisFileDirectory)text\text_input_box.cs" />
|
||||
<Compile Include="$(MSBuildThisFileDirectory)text\text_raylib_fonts.cs" />
|
||||
<Compile Include="$(MSBuildThisFileDirectory)text\text_sprite_fonts.cs" />
|
||||
<Compile Include="$(MSBuildThisFileDirectory)text\text_ttf_loading.cs" />
|
||||
<Compile Include="$(MSBuildThisFileDirectory)text\text_writing_anim.cs" />
|
||||
</ItemGroup>
|
||||
</Project>
|
@ -8,6 +8,6 @@
|
||||
<Import Project="$(MSBuildExtensionsPath32)\Microsoft\VisualStudio\v$(VisualStudioVersion)\CodeSharing\Microsoft.CodeSharing.Common.Default.props" />
|
||||
<Import Project="$(MSBuildExtensionsPath32)\Microsoft\VisualStudio\v$(VisualStudioVersion)\CodeSharing\Microsoft.CodeSharing.Common.props" />
|
||||
<PropertyGroup />
|
||||
<Import Project="Test.Common.projitems" Label="Shared" />
|
||||
<Import Project="Examples.projitems" Label="Shared" />
|
||||
<Import Project="$(MSBuildExtensionsPath32)\Microsoft\VisualStudio\v$(VisualStudioVersion)\CodeSharing\Microsoft.CodeSharing.CSharp.targets" />
|
||||
</Project>
|
@ -1,102 +0,0 @@
|
||||
using System;
|
||||
using System.Drawing;
|
||||
using System.Runtime.InteropServices;
|
||||
using System.Threading;
|
||||
using System.Windows.Forms;
|
||||
using static Raylib.Raylib;
|
||||
|
||||
namespace Raylib
|
||||
{
|
||||
public partial class RayForms : Form
|
||||
{
|
||||
private Panel gamePanel;
|
||||
private bool windowAttached = false;
|
||||
|
||||
#region WinAPI Entry Points
|
||||
|
||||
[DllImport("user32.dll")]
|
||||
private static extern IntPtr SetWindowPos(IntPtr handle, IntPtr handleAfter, int x, int y, int cx, int cy, uint flags);
|
||||
[DllImport("user32.dll")]
|
||||
private static extern IntPtr SetParent(IntPtr child, IntPtr newParent);
|
||||
[DllImport("user32.dll")]
|
||||
private static extern IntPtr ShowWindow(IntPtr handle, int command);
|
||||
|
||||
#endregion
|
||||
|
||||
public RayForms()
|
||||
{
|
||||
Size = new Size(1024, 700);
|
||||
Text = "Rayforms";
|
||||
|
||||
gamePanel = new Panel();
|
||||
gamePanel.Size = new Size(800, 500);
|
||||
gamePanel.Location = new Point(50, 50);
|
||||
|
||||
Button button = new Button();
|
||||
button.Text = "Attach window";
|
||||
button.Size = new Size(150, 20);
|
||||
button.Location = new Point(
|
||||
(Size.Width / 2) - (button.Size.Width / 2),
|
||||
gamePanel.Location.Y + gamePanel.Size.Height + 10
|
||||
);
|
||||
button.Click += new EventHandler(ClickedButton);
|
||||
Controls.Add(button);
|
||||
Controls.Add(gamePanel);
|
||||
}
|
||||
|
||||
private void ClickedButton(object sender, EventArgs e)
|
||||
{
|
||||
if (!windowAttached)
|
||||
{
|
||||
// new Thread(Test).Start();
|
||||
Test();
|
||||
}
|
||||
}
|
||||
|
||||
private void Test()
|
||||
{
|
||||
SetConfigFlags((int)Flag.WINDOW_UNDECORATED);
|
||||
InitWindow(800, 480, "Rayforms test");
|
||||
SetTargetFPS(60);
|
||||
|
||||
IntPtr winHandle = GetWindowHandle();
|
||||
Invoke(new Action(() =>
|
||||
{
|
||||
SetWindowPos(winHandle, Handle, 0, 0, 0, 0, 0x0401 /*NOSIZE | SHOWWINDOW */);
|
||||
SetParent(winHandle, gamePanel.Handle);
|
||||
ShowWindow(winHandle, 1);
|
||||
windowAttached = true;
|
||||
}));
|
||||
|
||||
// Main game loop
|
||||
while (!WindowShouldClose()) // Detect window close button or ESC key
|
||||
{
|
||||
// Update
|
||||
//----------------------------------------------------------------------------------
|
||||
// TODO: Update your variables here
|
||||
//----------------------------------------------------------------------------------
|
||||
|
||||
// Draw
|
||||
//----------------------------------------------------------------------------------
|
||||
BeginDrawing();
|
||||
|
||||
ClearBackground(RAYWHITE);
|
||||
|
||||
DrawText("Congrats! You created your first window!", 190, 200, 20, MAROON);
|
||||
|
||||
DrawText(GetFrameTime().ToString(), 100, 10, 15, MAROON);
|
||||
|
||||
DrawFPS(10, 10);
|
||||
|
||||
EndDrawing();
|
||||
//----------------------------------------------------------------------------------
|
||||
}
|
||||
CloseWindow();
|
||||
}
|
||||
|
||||
public static void Run()
|
||||
{
|
||||
Application.Run(new RayForms());
|
||||
}
|
||||
}
|
||||
}
|
@ -1,7 +1,7 @@
|
||||
using Raylib;
|
||||
using static Raylib.Raylib;
|
||||
|
||||
public partial class Examples
|
||||
public partial class audio_music_stream
|
||||
{
|
||||
/*******************************************************************************************
|
||||
/*******************************************************************************************
|
||||
*
|
||||
|
@ -1,7 +1,11 @@
|
||||
using Raylib;
|
||||
using System;
|
||||
using Raylib;
|
||||
using static Raylib.Raylib;
|
||||
|
||||
public partial class Examples
|
||||
public partial class audio_raw_stream
|
||||
{
|
||||
/*******************************************************************************************
|
||||
/*******************************************************************************************
|
||||
*
|
||||
* raylib [audio] example - Raw audio streaming
|
||||
*
|
||||
* NOTE: This example requires OpenAL Soft library installed
|
||||
|
@ -1,7 +1,7 @@
|
||||
using Raylib;
|
||||
using static Raylib.Raylib;
|
||||
|
||||
public partial class Examples
|
||||
public partial class audio_sound_loading
|
||||
{
|
||||
/*******************************************************************************************
|
||||
/*******************************************************************************************
|
||||
*
|
||||
|
@ -1,7 +1,9 @@
|
||||
using Raylib;
|
||||
using static Raylib.Raylib;
|
||||
using static Raylib.CameraType;
|
||||
using static Raylib.CameraMode;
|
||||
|
||||
public partial class Examples
|
||||
public partial class core_3d_camera_first_person
|
||||
{
|
||||
/*******************************************************************************************
|
||||
/*******************************************************************************************
|
||||
*
|
||||
|
@ -1,7 +1,9 @@
|
||||
using Raylib;
|
||||
using static Raylib.Raylib;
|
||||
using static Raylib.CameraType;
|
||||
using static Raylib.CameraMode;
|
||||
|
||||
public partial class Examples
|
||||
public partial class core_3d_camera_free
|
||||
{
|
||||
/*******************************************************************************************
|
||||
/*******************************************************************************************
|
||||
*
|
||||
|
@ -1,7 +1,8 @@
|
||||
using Raylib;
|
||||
using static Raylib.Raylib;
|
||||
using static Raylib.CameraType;
|
||||
|
||||
public partial class Examples
|
||||
public partial class core_3d_mode
|
||||
{
|
||||
/*******************************************************************************************
|
||||
/*******************************************************************************************
|
||||
*
|
||||
|
@ -1,7 +1,9 @@
|
||||
using Raylib;
|
||||
using static Raylib.Raylib;
|
||||
using static Raylib.CameraType;
|
||||
using static Raylib.CameraMode;
|
||||
|
||||
public partial class Examples
|
||||
public partial class core_3d_picking
|
||||
{
|
||||
/*******************************************************************************************
|
||||
/*******************************************************************************************
|
||||
*
|
||||
|
@ -1 +1 @@
|
||||
using Raylib;
|
||||
using Raylib;
|
@ -1,7 +1,7 @@
|
||||
using Raylib;
|
||||
using static Raylib.Raylib;
|
||||
|
||||
public partial class Examples
|
||||
public partial class core_color_select
|
||||
{
|
||||
/*******************************************************************************************
|
||||
/*******************************************************************************************
|
||||
*
|
||||
|
@ -1,7 +1,7 @@
|
||||
using Raylib;
|
||||
using static Raylib.Raylib;
|
||||
|
||||
public partial class Examples
|
||||
public partial class core_drop_files
|
||||
{
|
||||
/*******************************************************************************************
|
||||
/*******************************************************************************************
|
||||
*
|
||||
|
@ -1 +1,7 @@
|
||||
using Raylib;
|
||||
using Raylib;
|
||||
using static Raylib.Raylib;
|
||||
|
||||
public partial class core_input_keys
|
||||
{
|
||||
/*******************************************************************************************
|
||||
*
|
||||
|
@ -1 +1,7 @@
|
||||
using Raylib;
|
||||
using Raylib;
|
||||
using static Raylib.Raylib;
|
||||
|
||||
public partial class core_input_mouse
|
||||
{
|
||||
/*******************************************************************************************
|
||||
*
|
||||
|
@ -1 +1,11 @@
|
||||
using Raylib;
|
||||
using Raylib;
|
||||
using static Raylib.Raylib;
|
||||
|
||||
public partial class core_mouse_wheel
|
||||
{
|
||||
/*******************************************************************************************
|
||||
*
|
||||
* raylib [core] examples - Mouse wheel
|
||||
*
|
||||
* This test has been created using raylib 1.1 (www.raylib.com)
|
||||
* raylib is licensed under an unmodified zlib/libpng license (View raylib.h for details)
|
||||
|
@ -1,7 +1,8 @@
|
||||
using Raylib;
|
||||
using static Raylib.Raylib;
|
||||
|
||||
public partial class Examples
|
||||
public partial class core_random_values
|
||||
{
|
||||
/*******************************************************************************************
|
||||
/*******************************************************************************************
|
||||
*
|
||||
* raylib [core] example - Generate random values
|
||||
|
@ -1,7 +1,17 @@
|
||||
using Raylib;
|
||||
using static Raylib.Raylib;
|
||||
|
||||
public partial class Examples
|
||||
public partial class core_storage_values
|
||||
{
|
||||
/*******************************************************************************************
|
||||
/*******************************************************************************************
|
||||
*
|
||||
* raylib [core] example - Storage save/load values
|
||||
*
|
||||
* This example has been created using raylib 1.4 (www.raylib.com)
|
||||
* raylib is licensed under an unmodified zlib/libpng license (View raylib.h for details)
|
||||
*
|
||||
* Copyright (c) 2015 Ramon Santamaria (@raysan5)
|
||||
*
|
||||
********************************************************************************************/
|
||||
|
||||
// NOTE: Storage positions must start with 0, directly related to file memory layout
|
||||
|
@ -1,7 +1,10 @@
|
||||
using Raylib;
|
||||
using static Raylib.Raylib;
|
||||
using static Raylib.CameraType;
|
||||
using static Raylib.CameraMode;
|
||||
using static Raylib.VrDeviceType;
|
||||
|
||||
public partial class Examples
|
||||
public partial class core_vr_simulator
|
||||
{
|
||||
/*******************************************************************************************
|
||||
/*******************************************************************************************
|
||||
*
|
||||
|
@ -1,7 +1,9 @@
|
||||
using Raylib;
|
||||
using static Raylib.Raylib;
|
||||
using static Raylib.CameraType;
|
||||
using static Raylib.CameraMode;
|
||||
|
||||
public partial class Examples
|
||||
public partial class core_world_screen
|
||||
{
|
||||
/*******************************************************************************************
|
||||
/*******************************************************************************************
|
||||
*
|
||||
|
@ -1,7 +0,0 @@
|
||||
using Raylib;
|
||||
using static Raylib.Raylib;
|
||||
|
||||
public partial class Examples
|
||||
{
|
||||
/*******************************************************************************************
|
||||
*
|
@ -1,7 +1,9 @@
|
||||
using Raylib;
|
||||
using static Raylib.Raylib;
|
||||
using static Raylib.CameraType;
|
||||
using static Raylib.CameraMode;
|
||||
|
||||
public partial class Examples
|
||||
public partial class models_billboard
|
||||
{
|
||||
/*******************************************************************************************
|
||||
/*******************************************************************************************
|
||||
*
|
||||
|
@ -1,7 +1,9 @@
|
||||
using Raylib;
|
||||
using static Raylib.Raylib;
|
||||
using static Raylib.CameraMode;
|
||||
using static Raylib.TexmapIndex;
|
||||
|
||||
public partial class Examples
|
||||
public partial class models_cubicmap
|
||||
{
|
||||
/*******************************************************************************************
|
||||
/*******************************************************************************************
|
||||
*
|
||||
|
@ -1,7 +1,8 @@
|
||||
using Raylib;
|
||||
using static Raylib.Raylib;
|
||||
using static Raylib.CameraType;
|
||||
|
||||
public partial class Examples
|
||||
public partial class models_geometric_shapes
|
||||
{
|
||||
/*******************************************************************************************
|
||||
/*******************************************************************************************
|
||||
*
|
||||
|
@ -1,7 +1,9 @@
|
||||
using Raylib;
|
||||
using static Raylib.Raylib;
|
||||
using static Raylib.CameraMode;
|
||||
using static Raylib.TexmapIndex;
|
||||
|
||||
public partial class Examples
|
||||
public partial class models_heightmap
|
||||
{
|
||||
/*******************************************************************************************
|
||||
/*******************************************************************************************
|
||||
*
|
||||
|
@ -1,7 +1,9 @@
|
||||
using Raylib;
|
||||
using static Raylib.Raylib;
|
||||
using static Raylib.CameraType;
|
||||
using static Raylib.TexmapIndex;
|
||||
|
||||
public partial class Examples
|
||||
public partial class models_obj_loading
|
||||
{
|
||||
/*******************************************************************************************
|
||||
/*******************************************************************************************
|
||||
*
|
||||
|
@ -1,7 +1,9 @@
|
||||
using Raylib;
|
||||
using static Raylib.Raylib;
|
||||
using static Raylib.CameraType;
|
||||
using static Raylib.CameraMode;
|
||||
|
||||
public partial class Examples
|
||||
public partial class models_orthographic_projection
|
||||
{
|
||||
/*******************************************************************************************
|
||||
/*******************************************************************************************
|
||||
*
|
||||
|
@ -1,7 +1,9 @@
|
||||
using Raylib;
|
||||
using static Raylib.Raylib;
|
||||
using static Raylib.CameraMode;
|
||||
using static Raylib.TexmapIndex;
|
||||
|
||||
public partial class Examples
|
||||
public partial class models_skybox
|
||||
{
|
||||
/*******************************************************************************************
|
||||
/*******************************************************************************************
|
||||
*
|
||||
|
@ -1,7 +0,0 @@
|
||||
using Raylib;
|
||||
using static Raylib.Raylib;
|
||||
|
||||
public partial class Examples
|
||||
{
|
||||
/*******************************************************************************************
|
||||
*
|
@ -1,7 +1,14 @@
|
||||
using Raylib;
|
||||
using static Raylib.Raylib;
|
||||
|
||||
public partial class Examples
|
||||
public partial class bunnymark
|
||||
{
|
||||
/*******************************************************************************************
|
||||
/*******************************************************************************************
|
||||
*
|
||||
* raylib example - Bunnymark
|
||||
*
|
||||
* This example has been created using raylib 1.6 (www.raylib.com)
|
||||
* raylib is licensed under an unmodified zlib/libpng license (View raylib.h for details)
|
||||
*
|
||||
* Copyright (c) 2014 Ramon Santamaria (@raysan5)
|
||||
*
|
||||
|
BIN
Examples/others/resources/wabbit_alpha.png
Normal file
After Width: | Height: | Size: 449 B |
BIN
Examples/raylib-cs.ico
Normal file
After Width: | Height: | Size: 139 KiB |
@ -13,8 +13,8 @@ uniform vec4 colDiffuse;
|
||||
// NOTE: Add here your custom variables
|
||||
|
||||
// NOTE: Render size values should be passed from code
|
||||
const float renderWidth = 800;
|
||||
const float renderHeight = 450;
|
||||
const float renderWidth = 800.0;
|
||||
const float renderHeight = 450.0;
|
||||
|
||||
float radius = 250.0;
|
||||
float angle = 0.8;
|
||||
@ -43,4 +43,4 @@ void main()
|
||||
vec4 color = texture2D(texture0, tc/texSize)*colDiffuse*fragColor;;
|
||||
|
||||
gl_FragColor = vec4(color.rgb, 1.0);;
|
||||
}
|
||||
}
|
||||
|
@ -1,7 +1,10 @@
|
||||
using Raylib;
|
||||
using static Raylib.Raylib;
|
||||
using static Raylib.CameraType;
|
||||
using static Raylib.CameraMode;
|
||||
using static Raylib.TexmapIndex;
|
||||
|
||||
public partial class Examples
|
||||
public partial class shaders_model_shader
|
||||
{
|
||||
/*******************************************************************************************
|
||||
/*******************************************************************************************
|
||||
*
|
||||
|
@ -1,7 +1,7 @@
|
||||
using Raylib;
|
||||
using static Raylib.Raylib;
|
||||
|
||||
public partial class Examples
|
||||
public partial class shaders_shapes_textures
|
||||
{
|
||||
/*******************************************************************************************
|
||||
/*******************************************************************************************
|
||||
*
|
||||
|
@ -1,7 +1,7 @@
|
||||
using Raylib;
|
||||
using static Raylib.Raylib;
|
||||
|
||||
public partial class Examples
|
||||
public partial class shapes_basic_shapes
|
||||
{
|
||||
/*******************************************************************************************
|
||||
/*******************************************************************************************
|
||||
*
|
||||
|
@ -1,7 +1,7 @@
|
||||
using Raylib;
|
||||
using static Raylib.Raylib;
|
||||
|
||||
public partial class Examples
|
||||
public partial class shapes_colors_palette
|
||||
{
|
||||
/*******************************************************************************************
|
||||
/*******************************************************************************************
|
||||
*
|
||||
|
@ -1,7 +1,7 @@
|
||||
using Raylib;
|
||||
using static Raylib.Raylib;
|
||||
|
||||
public partial class Examples
|
||||
public partial class shapes_lines_bezier
|
||||
{
|
||||
/*******************************************************************************************
|
||||
/*******************************************************************************************
|
||||
*
|
||||
|
@ -1,7 +1,7 @@
|
||||
using Raylib;
|
||||
using static Raylib.Raylib;
|
||||
|
||||
public partial class Examples
|
||||
public partial class shapes_logo_raylib
|
||||
{
|
||||
/*******************************************************************************************
|
||||
/*******************************************************************************************
|
||||
*
|
||||
|
Before Width: | Height: | Size: 37 KiB After Width: | Height: | Size: 44 KiB |
Before Width: | Height: | Size: 23 KiB After Width: | Height: | Size: 28 KiB |
Before Width: | Height: | Size: 26 KiB After Width: | Height: | Size: 32 KiB |
Before Width: | Height: | Size: 4.3 KiB After Width: | Height: | Size: 3.5 KiB |
Before Width: | Height: | Size: 2.4 KiB After Width: | Height: | Size: 2.4 KiB |
Before Width: | Height: | Size: 3.4 KiB After Width: | Height: | Size: 2.9 KiB |
Before Width: | Height: | Size: 2.3 KiB After Width: | Height: | Size: 2.3 KiB |
Before Width: | Height: | Size: 2.9 KiB After Width: | Height: | Size: 2.7 KiB |
Before Width: | Height: | Size: 2.8 KiB After Width: | Height: | Size: 2.8 KiB |
Before Width: | Height: | Size: 2.9 KiB After Width: | Height: | Size: 2.6 KiB |
Before Width: | Height: | Size: 2.5 KiB After Width: | Height: | Size: 2.5 KiB |
@ -1,7 +1,7 @@
|
||||
using Raylib;
|
||||
using static Raylib.Raylib;
|
||||
|
||||
public partial class Examples
|
||||
public partial class text_bmfont_ttf
|
||||
{
|
||||
/*******************************************************************************************
|
||||
/*******************************************************************************************
|
||||
*
|
||||
|
@ -1,7 +1,7 @@
|
||||
using Raylib;
|
||||
using static Raylib.Raylib;
|
||||
|
||||
public partial class Examples
|
||||
public partial class text_bmfont_unordered
|
||||
{
|
||||
/*******************************************************************************************
|
||||
/*******************************************************************************************
|
||||
*
|
||||
|
@ -1,7 +1,7 @@
|
||||
using Raylib;
|
||||
using static Raylib.Raylib;
|
||||
|
||||
public partial class Examples
|
||||
public partial class text_format_text
|
||||
{
|
||||
/*******************************************************************************************
|
||||
/*******************************************************************************************
|
||||
*
|
||||
|
@ -1,7 +1,10 @@
|
||||
using Raylib;
|
||||
using System.Text;
|
||||
using static Raylib.Raylib;
|
||||
|
||||
public partial class Examples
|
||||
public partial class text_input_box
|
||||
{
|
||||
/*******************************************************************************************
|
||||
/*******************************************************************************************
|
||||
*
|
||||
* raylib [text] example - Input Box
|
||||
*
|
||||
|
@ -1,7 +1,7 @@
|
||||
using Raylib;
|
||||
using static Raylib.Raylib;
|
||||
|
||||
public partial class Examples
|
||||
public partial class text_raylib_fonts
|
||||
{
|
||||
/*******************************************************************************************
|
||||
/*******************************************************************************************
|
||||
*
|
||||
|
@ -1,7 +1,7 @@
|
||||
using Raylib;
|
||||
using static Raylib.Raylib;
|
||||
|
||||
public partial class Examples
|
||||
public partial class text_sprite_fonts
|
||||
{
|
||||
/*******************************************************************************************
|
||||
/*******************************************************************************************
|
||||
*
|
||||
|
@ -1,7 +1,7 @@
|
||||
using Raylib;
|
||||
using static Raylib.Raylib;
|
||||
|
||||
public partial class Examples
|
||||
public partial class text_writing_anim
|
||||
{
|
||||
/*******************************************************************************************
|
||||
/*******************************************************************************************
|
||||
*
|
||||
|
Before Width: | Height: | Size: 23 KiB After Width: | Height: | Size: 28 KiB |
BIN
Examples/textures/resources/ninepatch_button.png
Normal file
After Width: | Height: | Size: 5.8 KiB |
Before Width: | Height: | Size: 32 KiB After Width: | Height: | Size: 10 KiB |
@ -1,7 +1,7 @@
|
||||
using Raylib;
|
||||
using static Raylib.Raylib;
|
||||
|
||||
public partial class Examples
|
||||
public partial class textures_image_drawing
|
||||
{
|
||||
/*******************************************************************************************
|
||||
/*******************************************************************************************
|
||||
*
|
||||
|
@ -1,7 +1,7 @@
|
||||
using Raylib;
|
||||
using static Raylib.Raylib;
|
||||
|
||||
public partial class Examples
|
||||
public partial class textures_image_generation
|
||||
{
|
||||
/*******************************************************************************************
|
||||
/*******************************************************************************************
|
||||
*
|
||||
|
@ -1,7 +1,7 @@
|
||||
using Raylib;
|
||||
using static Raylib.Raylib;
|
||||
|
||||
public partial class Examples
|
||||
public partial class textures_image_loading
|
||||
{
|
||||
/*******************************************************************************************
|
||||
/*******************************************************************************************
|
||||
*
|
||||
|
@ -1,7 +1,7 @@
|
||||
using Raylib;
|
||||
using static Raylib.Raylib;
|
||||
|
||||
public partial class Examples
|
||||
public partial class textures_image_text
|
||||
{
|
||||
/*******************************************************************************************
|
||||
/*******************************************************************************************
|
||||
*
|
||||
|
@ -1,7 +1,7 @@
|
||||
using Raylib;
|
||||
using static Raylib.Raylib;
|
||||
|
||||
public partial class Examples
|
||||
public partial class textures_logo_raylib
|
||||
{
|
||||
/*******************************************************************************************
|
||||
/*******************************************************************************************
|
||||
*
|
||||
|
@ -1,7 +1,8 @@
|
||||
using Raylib;
|
||||
using static Raylib.Raylib;
|
||||
using static Raylib.PixelFormat;
|
||||
|
||||
public partial class Examples
|
||||
public partial class textures_raw_data
|
||||
{
|
||||
/*******************************************************************************************
|
||||
/*******************************************************************************************
|
||||
*
|
||||
|
@ -1,7 +1,7 @@
|
||||
using Raylib;
|
||||
using static Raylib.Raylib;
|
||||
|
||||
public partial class Examples
|
||||
public partial class textures_rectangle
|
||||
{
|
||||
/*******************************************************************************************
|
||||
/*******************************************************************************************
|
||||
*
|
||||
|
@ -1,7 +1,7 @@
|
||||
using Raylib;
|
||||
using static Raylib.Raylib;
|
||||
|
||||
public partial class Examples
|
||||
public partial class textures_srcrec_dstrec
|
||||
{
|
||||
/*******************************************************************************************
|
||||
/*******************************************************************************************
|
||||
*
|
||||
|
@ -1,7 +1,7 @@
|
||||
using Raylib;
|
||||
using static Raylib.Raylib;
|
||||
|
||||
public partial class Examples
|
||||
public partial class textures_to_image
|
||||
{
|
||||
/*******************************************************************************************
|
||||
/*******************************************************************************************
|
||||
*
|
||||
|
@ -5,20 +5,16 @@ VisualStudioVersion = 15.0.27703.2035
|
||||
MinimumVisualStudioVersion = 10.0.40219.1
|
||||
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Bindings", "Bindings\Bindings.csproj", "{9F30944C-415B-4763-91C7-81721117879D}"
|
||||
EndProject
|
||||
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Generator", "Generator\Generator.csproj", "{063F21F1-12D3-41C6-B598-125C725955B1}"
|
||||
EndProject
|
||||
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Examples", "Examples\Examples.csproj", "{EF58DEDB-3ACA-46F5-A443-1B93D28F206C}"
|
||||
EndProject
|
||||
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Test.NetCore", "Test.NetCore\Test.NetCore.csproj", "{1298EE9D-E480-4014-BED0-C7CFE94C4AD7}"
|
||||
EndProject
|
||||
Project("{D954291E-2A0B-460D-934E-DC6B0785DB48}") = "Examples", "Examples\Examples.shproj", "{36E54E2A-5899-4D4D-9D78-120DB1B4C7B2}"
|
||||
EndProject
|
||||
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Test.NetFX", "Test.NetFX\Test.NetFX.csproj", "{55D7BB37-3DC7-4A33-B21E-4F549EC988B5}"
|
||||
EndProject
|
||||
Project("{D954291E-2A0B-460D-934E-DC6B0785DB48}") = "Test.Common", "Test.Common\Test.Common.shproj", "{36E54E2A-5899-4D4D-9D78-120DB1B4C7B2}"
|
||||
EndProject
|
||||
Global
|
||||
GlobalSection(SharedMSBuildProjectFiles) = preSolution
|
||||
Test.Common\Test.Common.projitems*{36e54e2a-5899-4d4d-9d78-120db1b4c7b2}*SharedItemsImports = 13
|
||||
Test.Common\Test.Common.projitems*{55d7bb37-3dc7-4a33-b21e-4f549ec988b5}*SharedItemsImports = 4
|
||||
Examples\Examples.projitems*{36e54e2a-5899-4d4d-9d78-120db1b4c7b2}*SharedItemsImports = 13
|
||||
Examples\Examples.projitems*{55d7bb37-3dc7-4a33-b21e-4f549ec988b5}*SharedItemsImports = 4
|
||||
EndGlobalSection
|
||||
GlobalSection(SolutionConfigurationPlatforms) = preSolution
|
||||
Debug|Any CPU = Debug|Any CPU
|
||||
@ -41,26 +37,6 @@ Global
|
||||
{9F30944C-415B-4763-91C7-81721117879D}.Release|x64.Build.0 = Release|x64
|
||||
{9F30944C-415B-4763-91C7-81721117879D}.Release|x86.ActiveCfg = Release|x86
|
||||
{9F30944C-415B-4763-91C7-81721117879D}.Release|x86.Build.0 = Release|x86
|
||||
{063F21F1-12D3-41C6-B598-125C725955B1}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
|
||||
{063F21F1-12D3-41C6-B598-125C725955B1}.Debug|Any CPU.Build.0 = Debug|Any CPU
|
||||
{063F21F1-12D3-41C6-B598-125C725955B1}.Debug|x64.ActiveCfg = Debug|x64
|
||||
{063F21F1-12D3-41C6-B598-125C725955B1}.Debug|x64.Build.0 = Debug|x64
|
||||
{063F21F1-12D3-41C6-B598-125C725955B1}.Debug|x86.ActiveCfg = Debug|x86
|
||||
{063F21F1-12D3-41C6-B598-125C725955B1}.Debug|x86.Build.0 = Debug|x86
|
||||
{063F21F1-12D3-41C6-B598-125C725955B1}.Release|Any CPU.ActiveCfg = Release|Any CPU
|
||||
{063F21F1-12D3-41C6-B598-125C725955B1}.Release|Any CPU.Build.0 = Release|Any CPU
|
||||
{063F21F1-12D3-41C6-B598-125C725955B1}.Release|x64.ActiveCfg = Release|x64
|
||||
{063F21F1-12D3-41C6-B598-125C725955B1}.Release|x64.Build.0 = Release|x64
|
||||
{063F21F1-12D3-41C6-B598-125C725955B1}.Release|x86.ActiveCfg = Release|x86
|
||||
{063F21F1-12D3-41C6-B598-125C725955B1}.Release|x86.Build.0 = Release|x86
|
||||
{EF58DEDB-3ACA-46F5-A443-1B93D28F206C}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
|
||||
{EF58DEDB-3ACA-46F5-A443-1B93D28F206C}.Debug|Any CPU.Build.0 = Debug|Any CPU
|
||||
{EF58DEDB-3ACA-46F5-A443-1B93D28F206C}.Debug|x64.ActiveCfg = Debug|x64
|
||||
{EF58DEDB-3ACA-46F5-A443-1B93D28F206C}.Debug|x86.ActiveCfg = Debug|x86
|
||||
{EF58DEDB-3ACA-46F5-A443-1B93D28F206C}.Release|Any CPU.ActiveCfg = Release|Any CPU
|
||||
{EF58DEDB-3ACA-46F5-A443-1B93D28F206C}.Release|Any CPU.Build.0 = Release|Any CPU
|
||||
{EF58DEDB-3ACA-46F5-A443-1B93D28F206C}.Release|x64.ActiveCfg = Release|x64
|
||||
{EF58DEDB-3ACA-46F5-A443-1B93D28F206C}.Release|x86.ActiveCfg = Release|x86
|
||||
{1298EE9D-E480-4014-BED0-C7CFE94C4AD7}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
|
||||
{1298EE9D-E480-4014-BED0-C7CFE94C4AD7}.Debug|Any CPU.Build.0 = Debug|Any CPU
|
||||
{1298EE9D-E480-4014-BED0-C7CFE94C4AD7}.Debug|x64.ActiveCfg = Debug|x64
|
||||
|
@ -1,14 +0,0 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<Project xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
|
||||
<PropertyGroup>
|
||||
<MSBuildAllProjects>$(MSBuildAllProjects);$(MSBuildThisFileFullPath)</MSBuildAllProjects>
|
||||
<HasSharedItems>true</HasSharedItems>
|
||||
<SharedGUID>36e54e2a-5899-4d4d-9d78-120db1b4c7b2</SharedGUID>
|
||||
</PropertyGroup>
|
||||
<PropertyGroup Label="Configuration">
|
||||
<Import_RootNamespace>Test.Common</Import_RootNamespace>
|
||||
</PropertyGroup>
|
||||
<ItemGroup>
|
||||
<Compile Include="$(MSBuildThisFileDirectory)Test.cs" />
|
||||
</ItemGroup>
|
||||
</Project>
|
@ -1,52 +0,0 @@
|
||||
using System;
|
||||
using Raylib;
|
||||
using static Raylib.Raylib;
|
||||
|
||||
namespace Test.Common
|
||||
{
|
||||
public static class Test
|
||||
{
|
||||
public static void Run()
|
||||
{
|
||||
// Initialization
|
||||
//--------------------------------------------------------------------------------------
|
||||
int screenWidth = 800;
|
||||
int screenHeight = 450;
|
||||
|
||||
// SetConfigFlags((int)Flag.WINDOW_UNDECORATED);
|
||||
InitWindow(screenWidth, screenHeight, "raylib [core] example - basic window");
|
||||
|
||||
var model = LoadModel("bridge.obj");
|
||||
model.mesh.Vertices[0] = 5f;
|
||||
|
||||
SetTargetFPS(60);
|
||||
//--------------------------------------------------------------------------------------
|
||||
|
||||
// Main game loop
|
||||
while (!WindowShouldClose()) // Detect window close button or ESC key
|
||||
{
|
||||
// Update
|
||||
//----------------------------------------------------------------------------------
|
||||
// TODO: Update your variables here
|
||||
//----------------------------------------------------------------------------------
|
||||
|
||||
// Draw
|
||||
//----------------------------------------------------------------------------------
|
||||
BeginDrawing();
|
||||
|
||||
ClearBackground(RAYWHITE);
|
||||
|
||||
DrawText("Congrats! You created your first window!", 190, 200, 20, MAROON);
|
||||
|
||||
EndDrawing();
|
||||
//----------------------------------------------------------------------------------
|
||||
}
|
||||
|
||||
// De-Initialization
|
||||
//--------------------------------------------------------------------------------------
|
||||
CloseWindow(); // Close window and OpenGL context
|
||||
//--------------------------------------------------------------------------------------
|
||||
}
|
||||
|
||||
}
|
||||
}
|
@ -1,12 +1,11 @@
|
||||
using Test.Common;
|
||||
|
||||
|
||||
namespace Test.NetCore
|
||||
{
|
||||
class Program
|
||||
{
|
||||
static void Main(string[] args)
|
||||
{
|
||||
Common.Test.Run();
|
||||
core_basic_window.Main();
|
||||
}
|
||||
}
|
||||
}
|
||||
|