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
| void BrowserManager_BrowserRenderEvent(Guid id, System.Drawing.Bitmap screen) | |
| { | |
| if (id == _browserId) | |
| { | |
| _texture = TextureManager.Instance.CreateManual("DynamicTexture", ResourceGroupManager.DefaultResourceGroupName, TextureType.TwoD, screen.Width, screen.Height, 0, Axiom.Media.PixelFormat.R8G8B8A8, TextureUsage.RenderTarget); | |
| _material = (Material)MaterialManager.Instance.Create("DynamicMaterial", ResourceGroupManager.DefaultResourceGroupName); | |
| _material.GetTechnique(0).GetPass(0).CreateTextureUnitState("DynamicTexture"); | |
| var bitmapData = screen.LockBits( | |
| new System.Drawing.Rectangle(0, 0, screen.Width, screen.Height), |
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
| using System; | |
| using System.Collections.Generic; | |
| using System.Linq; | |
| using System.Text; | |
| using Axiom.Graphics; | |
| using Axiom.Core; | |
| using Axiom.Media; | |
| using System.Drawing.Imaging; | |
| using System.IO; |
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
| public void CreateScene() | |
| { | |
| _entity = _root.SceneManager.CreateEntity("CubeBrowser", PrefabEntity.Cube); | |
| _sceneNode = Root.Instance.SceneManager.RootSceneNode.CreateChildSceneNode(); | |
| _sceneNode.AttachObject(_entity); | |
| _sceneNode.Yaw(45); | |
| _sceneNode.Position = new Vector3(0, 0, -300); | |
| Bitmap bmp = new Bitmap(100, 100, System.Drawing.Imaging.PixelFormat.Format32bppArgb); |
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
| /// <summary> | |
| /// Bitmaps to texture. | |
| /// </summary> | |
| /// <param name="bmp">The BMP.</param> | |
| /// <param name="texture">The texture.</param> | |
| public unsafe static void BitmapToTexture(Bitmap bitmap, Texture texture) | |
| { | |
| var bmp = bitmap.Clone(new System.Drawing.Rectangle(0, 0, bitmap.Width, bitmap.Height), System.Drawing.Imaging.PixelFormat.Format32bppArgb); |
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
| // Will capture the Inputs correctly // Mouse will dissappear | |
| _inputReader.Initialize(_renderWindow, true, true, false, true); | |
| _inputReader.UseKeyboardEvents = false; | |
| _inputReader.UseMouseEvents = false; | |
| // Mouse will not dissappear // will not fire off click events | |
| _inputReader.Initialize(_renderWindow, true, true, false, true); |
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
| RaySceneQuery SceneQuery = _root.SceneManager.CreateRayQuery( | |
| _camera.GetCameraToViewportRay( | |
| inputReader.AbsoluteMouseX / (float)_renderWindow.Width, | |
| inputReader.AbsoluteMouseY / (float)_renderWindow.Height) | |
| , | |
| 0x40000000 | |
| ); | |
| foreach (RaySceneQueryResultEntry result in SceneQuery.Execute()) | |
| { |
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
| public unsafe static void BitmapToTexture(Bitmap bitmap, Texture texture) | |
| { | |
| var bmp = bitmap.Clone(new System.Drawing.Rectangle(0, 0, bitmap.Width, bitmap.Height), System.Drawing.Imaging.PixelFormat.Format32bppArgb); | |
| var bitmapData = bmp.LockBits( | |
| new System.Drawing.Rectangle(0, 0, bmp.Width, bmp.Height), | |
| ImageLockMode.ReadOnly, | |
| bmp.PixelFormat); |
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
| Index: Lib/Managed/XPlatform/Tao/2.1.0.0/source/src/Tao.Cg/Tao.Cg.v4.0.csproj | |
| =================================================================== | |
| --- Lib/Managed/XPlatform/Tao/2.1.0.0/source/src/Tao.Cg/Tao.Cg.v4.0.csproj (revision 0) | |
| +++ Lib/Managed/XPlatform/Tao/2.1.0.0/source/src/Tao.Cg/Tao.Cg.v4.0.csproj (working copy) | |
| @@ -0,0 +1,90 @@ | |
| +<?xml version="1.0" encoding="utf-8"?> | |
| +<Project DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003" ToolsVersion="4.0"> | |
| + <PropertyGroup> | |
| + <ProjectType>Local</ProjectType> | |
| + <ProductVersion>8.0.50727</ProductVersion> |
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 | |
| defined('C5_EXECUTE') or die(_("Access Denied.")); | |
| class VanillaForumsPackage extends Package { | |
| protected $pkgHandle = 'vanilla_forums'; | |
| protected $appVersionRequired = '5.5'; | |
| protected $pkgVersion = '1.0.2'; | |
| public function getPackageDescription() { |
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
| public void Test() | |
| { | |
| try { | |
| throw new Exception(); | |
| } catch (Exception ex) | |
| { | |
| // do logging or what ever | |
| throw; | |
| } | |
| } |