lots of things
This commit is contained in:
commit
4c8e33efc6
@ -6,6 +6,12 @@ MinimumVisualStudioVersion = 10.0.40219.1
|
||||
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "GameCreatorGroupProject", "GameCreatorGroupProject\GameCreatorGroupProject.csproj", "{996A0B27-CF11-49A1-A363-55CABA32CED1}"
|
||||
EndProject
|
||||
Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "Solution Items", "Solution Items", "{CB7F2621-E423-4299-871A-931DA446A37F}"
|
||||
ProjectSection(SolutionItems) = preProject
|
||||
..\..\OpenTK-Test\JustTheBasics\JustTheBasics\fs.glsl = ..\..\OpenTK-Test\JustTheBasics\JustTheBasics\fs.glsl
|
||||
..\..\OpenTK-Test\JustTheBasics\JustTheBasics\fs_tex.glsl = ..\..\OpenTK-Test\JustTheBasics\JustTheBasics\fs_tex.glsl
|
||||
..\..\OpenTK-Test\JustTheBasics\JustTheBasics\vs.glsl = ..\..\OpenTK-Test\JustTheBasics\JustTheBasics\vs.glsl
|
||||
..\..\OpenTK-Test\JustTheBasics\JustTheBasics\vs_tex.glsl = ..\..\OpenTK-Test\JustTheBasics\JustTheBasics\vs_tex.glsl
|
||||
EndProjectSection
|
||||
EndProject
|
||||
Global
|
||||
GlobalSection(SolutionConfigurationPlatforms) = preSolution
|
||||
|
@ -890,7 +890,11 @@
|
||||
| System.Windows.Forms.AnchorStyles.Right)));
|
||||
this.btnInstantiate.Location = new System.Drawing.Point(5, 6);
|
||||
this.btnInstantiate.Name = "btnInstantiate";
|
||||
<<<<<<< HEAD
|
||||
this.btnInstantiate.Size = new System.Drawing.Size(78, 23);
|
||||
=======
|
||||
this.btnInstantiate.Size = new System.Drawing.Size(112, 23);
|
||||
>>>>>>> 51140f1a159830d8f0a42ba5e1a4106d61b148de
|
||||
this.btnInstantiate.TabIndex = 0;
|
||||
this.btnInstantiate.Text = "Instantiate Object";
|
||||
this.btnInstantiate.UseVisualStyleBackColor = true;
|
||||
@ -901,7 +905,11 @@
|
||||
| System.Windows.Forms.AnchorStyles.Right)));
|
||||
this.btnDestroy.Location = new System.Drawing.Point(5, 35);
|
||||
this.btnDestroy.Name = "btnDestroy";
|
||||
<<<<<<< HEAD
|
||||
this.btnDestroy.Size = new System.Drawing.Size(78, 23);
|
||||
=======
|
||||
this.btnDestroy.Size = new System.Drawing.Size(112, 23);
|
||||
>>>>>>> 51140f1a159830d8f0a42ba5e1a4106d61b148de
|
||||
this.btnDestroy.TabIndex = 1;
|
||||
this.btnDestroy.Text = "Destroy Object";
|
||||
this.btnDestroy.UseVisualStyleBackColor = true;
|
||||
@ -923,7 +931,11 @@
|
||||
| System.Windows.Forms.AnchorStyles.Right)));
|
||||
this.btnMove.Location = new System.Drawing.Point(6, 64);
|
||||
this.btnMove.Name = "btnMove";
|
||||
<<<<<<< HEAD
|
||||
this.btnMove.Size = new System.Drawing.Size(77, 23);
|
||||
=======
|
||||
this.btnMove.Size = new System.Drawing.Size(111, 23);
|
||||
>>>>>>> 51140f1a159830d8f0a42ba5e1a4106d61b148de
|
||||
this.btnMove.TabIndex = 2;
|
||||
this.btnMove.Text = "Move";
|
||||
this.btnMove.UseVisualStyleBackColor = true;
|
||||
@ -934,7 +946,11 @@
|
||||
| System.Windows.Forms.AnchorStyles.Right)));
|
||||
this.btnScore.Location = new System.Drawing.Point(6, 93);
|
||||
this.btnScore.Name = "btnScore";
|
||||
<<<<<<< HEAD
|
||||
this.btnScore.Size = new System.Drawing.Size(77, 23);
|
||||
=======
|
||||
this.btnScore.Size = new System.Drawing.Size(111, 23);
|
||||
>>>>>>> 51140f1a159830d8f0a42ba5e1a4106d61b148de
|
||||
this.btnScore.TabIndex = 3;
|
||||
this.btnScore.Text = "Set Score";
|
||||
this.btnScore.UseVisualStyleBackColor = true;
|
||||
@ -945,7 +961,11 @@
|
||||
| System.Windows.Forms.AnchorStyles.Right)));
|
||||
this.btnTimer.Location = new System.Drawing.Point(6, 151);
|
||||
this.btnTimer.Name = "btnTimer";
|
||||
<<<<<<< HEAD
|
||||
this.btnTimer.Size = new System.Drawing.Size(77, 23);
|
||||
=======
|
||||
this.btnTimer.Size = new System.Drawing.Size(111, 23);
|
||||
>>>>>>> 51140f1a159830d8f0a42ba5e1a4106d61b148de
|
||||
this.btnTimer.TabIndex = 5;
|
||||
this.btnTimer.Text = "Set Timer";
|
||||
this.btnTimer.UseVisualStyleBackColor = true;
|
||||
@ -957,7 +977,11 @@
|
||||
| System.Windows.Forms.AnchorStyles.Right)));
|
||||
this.btnHealth.Location = new System.Drawing.Point(6, 122);
|
||||
this.btnHealth.Name = "btnHealth";
|
||||
<<<<<<< HEAD
|
||||
this.btnHealth.Size = new System.Drawing.Size(77, 23);
|
||||
=======
|
||||
this.btnHealth.Size = new System.Drawing.Size(111, 23);
|
||||
>>>>>>> 51140f1a159830d8f0a42ba5e1a4106d61b148de
|
||||
this.btnHealth.TabIndex = 4;
|
||||
this.btnHealth.Text = "Set Health";
|
||||
this.btnHealth.UseVisualStyleBackColor = true;
|
||||
@ -995,7 +1019,11 @@
|
||||
| System.Windows.Forms.AnchorStyles.Right)));
|
||||
this.btnOnCreate.Location = new System.Drawing.Point(5, 3);
|
||||
this.btnOnCreate.Name = "btnOnCreate";
|
||||
<<<<<<< HEAD
|
||||
this.btnOnCreate.Size = new System.Drawing.Size(78, 23);
|
||||
=======
|
||||
this.btnOnCreate.Size = new System.Drawing.Size(112, 23);
|
||||
>>>>>>> 51140f1a159830d8f0a42ba5e1a4106d61b148de
|
||||
this.btnOnCreate.TabIndex = 4;
|
||||
this.btnOnCreate.Text = "On Create";
|
||||
this.btnOnCreate.UseVisualStyleBackColor = true;
|
||||
@ -1007,7 +1035,11 @@
|
||||
| System.Windows.Forms.AnchorStyles.Right)));
|
||||
this.btnTestVar.Location = new System.Drawing.Point(5, 145);
|
||||
this.btnTestVar.Name = "btnTestVar";
|
||||
<<<<<<< HEAD
|
||||
this.btnTestVar.Size = new System.Drawing.Size(78, 23);
|
||||
=======
|
||||
this.btnTestVar.Size = new System.Drawing.Size(112, 23);
|
||||
>>>>>>> 51140f1a159830d8f0a42ba5e1a4106d61b148de
|
||||
this.btnTestVar.TabIndex = 6;
|
||||
this.btnTestVar.Text = "Test Variable";
|
||||
this.btnTestVar.UseVisualStyleBackColor = true;
|
||||
@ -1018,7 +1050,11 @@
|
||||
| System.Windows.Forms.AnchorStyles.Right)));
|
||||
this.btnCollision.Location = new System.Drawing.Point(5, 87);
|
||||
this.btnCollision.Name = "btnCollision";
|
||||
<<<<<<< HEAD
|
||||
this.btnCollision.Size = new System.Drawing.Size(78, 23);
|
||||
=======
|
||||
this.btnCollision.Size = new System.Drawing.Size(112, 23);
|
||||
>>>>>>> 51140f1a159830d8f0a42ba5e1a4106d61b148de
|
||||
this.btnCollision.TabIndex = 2;
|
||||
this.btnCollision.Text = "On Collision";
|
||||
this.btnCollision.UseVisualStyleBackColor = true;
|
||||
@ -1030,7 +1066,11 @@
|
||||
| System.Windows.Forms.AnchorStyles.Right)));
|
||||
this.btnInput.Location = new System.Drawing.Point(5, 116);
|
||||
this.btnInput.Name = "btnInput";
|
||||
<<<<<<< HEAD
|
||||
this.btnInput.Size = new System.Drawing.Size(78, 23);
|
||||
=======
|
||||
this.btnInput.Size = new System.Drawing.Size(112, 23);
|
||||
>>>>>>> 51140f1a159830d8f0a42ba5e1a4106d61b148de
|
||||
this.btnInput.TabIndex = 1;
|
||||
this.btnInput.Text = "Get Input";
|
||||
this.btnInput.UseVisualStyleBackColor = true;
|
||||
@ -1042,7 +1082,11 @@
|
||||
| System.Windows.Forms.AnchorStyles.Right)));
|
||||
this.btnOnDestruct.Location = new System.Drawing.Point(5, 29);
|
||||
this.btnOnDestruct.Name = "btnOnDestruct";
|
||||
<<<<<<< HEAD
|
||||
this.btnOnDestruct.Size = new System.Drawing.Size(78, 23);
|
||||
=======
|
||||
this.btnOnDestruct.Size = new System.Drawing.Size(112, 23);
|
||||
>>>>>>> 51140f1a159830d8f0a42ba5e1a4106d61b148de
|
||||
this.btnOnDestruct.TabIndex = 5;
|
||||
this.btnOnDestruct.Text = "On Destruct";
|
||||
this.btnOnDestruct.UseVisualStyleBackColor = true;
|
||||
@ -1054,7 +1098,11 @@
|
||||
| System.Windows.Forms.AnchorStyles.Right)));
|
||||
this.btnOnStep.Location = new System.Drawing.Point(5, 58);
|
||||
this.btnOnStep.Name = "btnOnStep";
|
||||
<<<<<<< HEAD
|
||||
this.btnOnStep.Size = new System.Drawing.Size(78, 23);
|
||||
=======
|
||||
this.btnOnStep.Size = new System.Drawing.Size(112, 23);
|
||||
>>>>>>> 51140f1a159830d8f0a42ba5e1a4106d61b148de
|
||||
this.btnOnStep.TabIndex = 7;
|
||||
this.btnOnStep.Text = "On Step";
|
||||
this.btnOnStep.UseVisualStyleBackColor = true;
|
||||
@ -1628,6 +1676,8 @@
|
||||
this.glRoomView.DragDrop += new System.Windows.Forms.DragEventHandler(this.glRoomView_DragDrop);
|
||||
this.glRoomView.DragEnter += new System.Windows.Forms.DragEventHandler(this.glRoomView_DragEnter);
|
||||
this.glRoomView.Paint += new System.Windows.Forms.PaintEventHandler(this.glRoomView_Paint);
|
||||
this.glRoomView.MouseDown += new System.Windows.Forms.MouseEventHandler(this.glRoomView_MouseDown);
|
||||
this.glRoomView.MouseUp += new System.Windows.Forms.MouseEventHandler(this.glRoomView_MouseUp);
|
||||
//
|
||||
// imageResources
|
||||
//
|
||||
@ -1668,7 +1718,11 @@
|
||||
// btnSendMsg
|
||||
//
|
||||
this.btnSendMsg.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right)));
|
||||
<<<<<<< HEAD
|
||||
this.btnSendMsg.Location = new System.Drawing.Point(1016, 134);
|
||||
=======
|
||||
this.btnSendMsg.Location = new System.Drawing.Point(1016, 142);
|
||||
>>>>>>> 51140f1a159830d8f0a42ba5e1a4106d61b148de
|
||||
this.btnSendMsg.Name = "btnSendMsg";
|
||||
this.btnSendMsg.Size = new System.Drawing.Size(139, 23);
|
||||
this.btnSendMsg.TabIndex = 2;
|
||||
@ -1679,7 +1733,11 @@
|
||||
//
|
||||
this.txtMessage.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Left)
|
||||
| System.Windows.Forms.AnchorStyles.Right)));
|
||||
<<<<<<< HEAD
|
||||
this.txtMessage.Location = new System.Drawing.Point(3, 137);
|
||||
=======
|
||||
this.txtMessage.Location = new System.Drawing.Point(3, 145);
|
||||
>>>>>>> 51140f1a159830d8f0a42ba5e1a4106d61b148de
|
||||
this.txtMessage.Name = "txtMessage";
|
||||
this.txtMessage.Size = new System.Drawing.Size(1006, 20);
|
||||
this.txtMessage.TabIndex = 1;
|
||||
@ -1694,7 +1752,11 @@
|
||||
this.txtChat.Name = "txtChat";
|
||||
this.txtChat.ReadOnly = true;
|
||||
this.txtChat.ScrollBars = System.Windows.Forms.ScrollBars.Vertical;
|
||||
<<<<<<< HEAD
|
||||
this.txtChat.Size = new System.Drawing.Size(1152, 125);
|
||||
=======
|
||||
this.txtChat.Size = new System.Drawing.Size(1152, 133);
|
||||
>>>>>>> 51140f1a159830d8f0a42ba5e1a4106d61b148de
|
||||
this.txtChat.TabIndex = 0;
|
||||
//
|
||||
// folderPrjDir
|
||||
|
File diff suppressed because it is too large
Load Diff
@ -98,6 +98,21 @@
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<None Include="App.config" />
|
||||
<None Include="fs.glsl">
|
||||
<CopyToOutputDirectory>Always</CopyToOutputDirectory>
|
||||
</None>
|
||||
<None Include="fs_sel.glsl">
|
||||
<CopyToOutputDirectory>Always</CopyToOutputDirectory>
|
||||
</None>
|
||||
<None Include="fs_tex.glsl">
|
||||
<CopyToOutputDirectory>Always</CopyToOutputDirectory>
|
||||
</None>
|
||||
<None Include="vs.glsl">
|
||||
<CopyToOutputDirectory>Always</CopyToOutputDirectory>
|
||||
</None>
|
||||
<None Include="vs_tex.glsl">
|
||||
<CopyToOutputDirectory>Always</CopyToOutputDirectory>
|
||||
</None>
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<Folder Include="Properties\" />
|
||||
|
@ -7,12 +7,10 @@ using System.Windows.Input;
|
||||
using OpenTK.Input;
|
||||
using System.Windows.Forms;
|
||||
using OpenTK;
|
||||
using System.Drawing;
|
||||
|
||||
namespace GameCreatorGroupProject
|
||||
{
|
||||
|
||||
|
||||
|
||||
class GameObject
|
||||
{
|
||||
//contains all gameObjects with collision detection on, might have to move to external class rather than static var in case user is working on more than one project
|
||||
@ -503,6 +501,24 @@ namespace GameCreatorGroupProject
|
||||
return false;
|
||||
}
|
||||
|
||||
// Function to determine if a point is within a sprite
|
||||
// Args: point where the click occured, dimensions of the control
|
||||
public bool IsInside(Point clickPt)
|
||||
{
|
||||
// Compare with position and sprite size to determine if point is within
|
||||
if (clickPt.X >= minX && clickPt.X <= maxX) // if within horizontal bounds
|
||||
{
|
||||
if (clickPt.Y >= minY && clickPt.Y <= maxY) // if within vertical bounds
|
||||
{
|
||||
// It is inside, return true
|
||||
return true;
|
||||
}
|
||||
}
|
||||
|
||||
// If above didn't return, return false
|
||||
return false;
|
||||
}
|
||||
|
||||
/*
|
||||
//check if location is valid, x coordinate, and y coordinate, max and min xy are the map boundaries
|
||||
//currently unused
|
||||
|
@ -14,6 +14,9 @@ namespace GameCreatorGroupProject
|
||||
// drawing a 2D image (or sprite) on the screen during the game.
|
||||
class Sprite
|
||||
{
|
||||
// Variable to track if the given sprite has already been loaded into the room
|
||||
public bool loaded = false;
|
||||
|
||||
// Member variables
|
||||
// Var for storing position (in pixels) on the screen
|
||||
public Vector3 Position = Vector3.Zero;
|
||||
@ -111,5 +114,31 @@ namespace GameCreatorGroupProject
|
||||
{
|
||||
ModelMatrix = Matrix4.CreateScale(Scale) * Matrix4.CreateRotationX(Rotation.X) * Matrix4.CreateRotationY(Rotation.Y) * Matrix4.CreateRotationZ(Rotation.Z) * Matrix4.CreateTranslation(Position);
|
||||
}
|
||||
|
||||
// Function to determine if a point is within a sprite
|
||||
// Args: point where the click occured, dimensions of the control
|
||||
public bool IsInside(Point clickPt, int wWidth, int wHeight)
|
||||
{
|
||||
// Convert the click point to screen normalized point
|
||||
float relX = clickPt.X / (float)wWidth;
|
||||
float relY = clickPt.Y / (float)wHeight;
|
||||
|
||||
// Convert sprite dimensions to normalized dimensions
|
||||
float sizeX = Width / (float)wWidth;
|
||||
float sizeY = Height / (float)wHeight;
|
||||
|
||||
// Compare with position and sprite size to determine if point is within
|
||||
if (relX >= Position.X && relX <= Position.X + sizeX) // if within horizontal bounds
|
||||
{
|
||||
if (relY >= Position.Y && relY <= Position.Y + sizeY) // if within vertical bounds
|
||||
{
|
||||
// It is inside, return true
|
||||
return true;
|
||||
}
|
||||
}
|
||||
|
||||
// If above didn't return, return false
|
||||
return false;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -1,6 +0,0 @@
|
||||
<?xml version="1.0" encoding="utf-8" ?>
|
||||
<configuration>
|
||||
<startup>
|
||||
<supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.5.2" />
|
||||
</startup>
|
||||
</configuration>
|
Binary file not shown.
@ -1,6 +0,0 @@
|
||||
<?xml version="1.0" encoding="utf-8" ?>
|
||||
<configuration>
|
||||
<startup>
|
||||
<supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.5.2" />
|
||||
</startup>
|
||||
</configuration>
|
@ -1,11 +0,0 @@
|
||||
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
|
||||
<assembly xmlns="urn:schemas-microsoft-com:asm.v1" manifestVersion="1.0">
|
||||
<assemblyIdentity version="1.0.0.0" name="MyApplication.app"/>
|
||||
<trustInfo xmlns="urn:schemas-microsoft-com:asm.v2">
|
||||
<security>
|
||||
<requestedPrivileges xmlns="urn:schemas-microsoft-com:asm.v3">
|
||||
<requestedExecutionLevel level="asInvoker" uiAccess="false"/>
|
||||
</requestedPrivileges>
|
||||
</security>
|
||||
</trustInfo>
|
||||
</assembly>
|
Binary file not shown.
Binary file not shown.
@ -1,191 +0,0 @@
|
||||
<?xml version="1.0"?>
|
||||
<doc>
|
||||
<assembly>
|
||||
<name>OpenTK.GLControl</name>
|
||||
</assembly>
|
||||
<members>
|
||||
<member name="T:OpenTK.GLControl">
|
||||
<summary>
|
||||
OpenGL-aware WinForms control.
|
||||
The WinForms designer will always call the default constructor.
|
||||
Inherit from this class and call one of its specialized constructors
|
||||
to enable antialiasing or custom <see cref="P:OpenTK.GLControl.GraphicsMode"/>s.
|
||||
</summary>
|
||||
</member>
|
||||
<member name="F:OpenTK.GLControl.components">
|
||||
<summary>
|
||||
Required designer variable.
|
||||
</summary>
|
||||
</member>
|
||||
<member name="M:OpenTK.GLControl.Dispose(System.Boolean)">
|
||||
<summary>
|
||||
Clean up any resources being used.
|
||||
</summary>
|
||||
<param name="disposing">true if managed resources should be disposed; otherwise, false.</param>
|
||||
</member>
|
||||
<member name="M:OpenTK.GLControl.InitializeComponent">
|
||||
<summary>
|
||||
Required method for Designer support - do not modify
|
||||
the contents of this method with the code editor.
|
||||
</summary>
|
||||
</member>
|
||||
<member name="M:OpenTK.GLControl.#ctor">
|
||||
<summary>
|
||||
Constructs a new instance.
|
||||
</summary>
|
||||
</member>
|
||||
<member name="M:OpenTK.GLControl.#ctor(OpenTK.Graphics.GraphicsMode)">
|
||||
<summary>
|
||||
Constructs a new instance with the specified GraphicsMode.
|
||||
</summary>
|
||||
<param name="mode">The OpenTK.Graphics.GraphicsMode of the control.</param>
|
||||
</member>
|
||||
<member name="M:OpenTK.GLControl.#ctor(OpenTK.Graphics.GraphicsMode,System.Int32,System.Int32,OpenTK.Graphics.GraphicsContextFlags)">
|
||||
<summary>
|
||||
Constructs a new instance with the specified GraphicsMode.
|
||||
</summary>
|
||||
<param name="mode">The OpenTK.Graphics.GraphicsMode of the control.</param>
|
||||
<param name="major">The major version for the OpenGL GraphicsContext.</param>
|
||||
<param name="minor">The minor version for the OpenGL GraphicsContext.</param>
|
||||
<param name="flags">The GraphicsContextFlags for the OpenGL GraphicsContext.</param>
|
||||
</member>
|
||||
<member name="M:OpenTK.GLControl.OnHandleCreated(System.EventArgs)">
|
||||
<summary>Raises the HandleCreated event.</summary>
|
||||
<param name="e">Not used.</param>
|
||||
</member>
|
||||
<member name="M:OpenTK.GLControl.OnHandleDestroyed(System.EventArgs)">
|
||||
<summary>Raises the HandleDestroyed event.</summary>
|
||||
<param name="e">Not used.</param>
|
||||
</member>
|
||||
<member name="M:OpenTK.GLControl.OnPaint(System.Windows.Forms.PaintEventArgs)">
|
||||
<summary>
|
||||
Raises the System.Windows.Forms.Control.Paint event.
|
||||
</summary>
|
||||
<param name="e">A System.Windows.Forms.PaintEventArgs that contains the event data.</param>
|
||||
</member>
|
||||
<member name="M:OpenTK.GLControl.OnResize(System.EventArgs)">
|
||||
<summary>
|
||||
Raises the Resize event.
|
||||
Note: this method may be called before the OpenGL context is ready.
|
||||
Check that IsHandleCreated is true before using any OpenGL methods.
|
||||
</summary>
|
||||
<param name="e">A System.EventArgs that contains the event data.</param>
|
||||
</member>
|
||||
<member name="M:OpenTK.GLControl.PerformContextUpdate">
|
||||
<summary>
|
||||
Execute the delayed context update
|
||||
</summary>
|
||||
</member>
|
||||
<member name="M:OpenTK.GLControl.OnParentChanged(System.EventArgs)">
|
||||
<summary>
|
||||
Raises the ParentChanged event.
|
||||
</summary>
|
||||
<param name="e">A System.EventArgs that contains the event data.</param>
|
||||
</member>
|
||||
<member name="M:OpenTK.GLControl.SwapBuffers">
|
||||
<summary>
|
||||
Swaps the front and back buffers, presenting the rendered scene to the screen.
|
||||
This method will have no effect on a single-buffered <c>GraphicsMode</c>.
|
||||
</summary>
|
||||
</member>
|
||||
<member name="M:OpenTK.GLControl.MakeCurrent">
|
||||
<summary>
|
||||
<para>
|
||||
Makes <see cref="P:OpenTK.GLControl.Context"/> current in the calling thread.
|
||||
All OpenGL commands issued are hereafter interpreted by this context.
|
||||
</para>
|
||||
<para>
|
||||
When using multiple <c>GLControl</c>s, calling <c>MakeCurrent</c> on
|
||||
one control will make all other controls non-current in the calling thread.
|
||||
</para>
|
||||
<seealso cref="P:OpenTK.GLControl.Context"/>
|
||||
<para>
|
||||
A <c>GLControl</c> can only be current in one thread at a time.
|
||||
To make a control non-current, call <c>GLControl.Context.MakeCurrent(null)</c>.
|
||||
</para>
|
||||
</summary>
|
||||
</member>
|
||||
<member name="M:OpenTK.GLControl.GrabScreenshot">
|
||||
<summary>
|
||||
Grabs a screenshot of the frontbuffer contents.
|
||||
When using multiple <c>GLControl</c>s, ensure that <see cref="P:OpenTK.GLControl.Context"/>
|
||||
is current before accessing this property.
|
||||
<seealso cref="P:OpenTK.GLControl.Context"/>
|
||||
<seealso cref="M:OpenTK.GLControl.MakeCurrent"/>
|
||||
</summary>
|
||||
<returns>A System.Drawing.Bitmap, containing the contents of the frontbuffer.</returns>
|
||||
<exception cref="T:OpenTK.Graphics.GraphicsContextException">
|
||||
Occurs when no OpenTK.Graphics.GraphicsContext is current in the calling thread.
|
||||
</exception>
|
||||
</member>
|
||||
<member name="P:OpenTK.GLControl.CreateParams">
|
||||
<summary>
|
||||
Gets the <c>CreateParams</c> instance for this <c>GLControl</c>
|
||||
</summary>
|
||||
</member>
|
||||
<member name="P:OpenTK.GLControl.IsIdle">
|
||||
<summary>
|
||||
Gets a value indicating whether the current thread contains pending system messages.
|
||||
</summary>
|
||||
</member>
|
||||
<member name="P:OpenTK.GLControl.Context">
|
||||
<summary>
|
||||
Gets the <c>IGraphicsContext</c> instance that is associated with the <c>GLControl</c>.
|
||||
The associated <c>IGraphicsContext</c> is updated whenever the <c>GLControl</c>
|
||||
handle is created or recreated.
|
||||
When using multiple <c>GLControl</c>s, ensure that <c>Context</c>
|
||||
is current before performing any OpenGL operations.
|
||||
<seealso cref="M:OpenTK.GLControl.MakeCurrent"/>
|
||||
</summary>
|
||||
</member>
|
||||
<member name="P:OpenTK.GLControl.AspectRatio">
|
||||
<summary>
|
||||
Gets the aspect ratio of this GLControl.
|
||||
</summary>
|
||||
</member>
|
||||
<member name="P:OpenTK.GLControl.VSync">
|
||||
<summary>
|
||||
Gets or sets a value indicating whether vsync is active for this <c>GLControl</c>.
|
||||
When using multiple <c>GLControl</c>s, ensure that <see cref="P:OpenTK.GLControl.Context"/>
|
||||
is current before accessing this property.
|
||||
<seealso cref="P:OpenTK.GLControl.Context"/>
|
||||
<seealso cref="M:OpenTK.GLControl.MakeCurrent"/>
|
||||
</summary>
|
||||
</member>
|
||||
<member name="P:OpenTK.GLControl.GraphicsMode">
|
||||
<summary>
|
||||
Gets the <c>GraphicsMode</c> of the <c>IGraphicsContext</c> associated with
|
||||
this <c>GLControl</c>. If you wish to change <c>GraphicsMode</c>, you must
|
||||
destroy and recreate the <c>GLControl</c>.
|
||||
</summary>
|
||||
</member>
|
||||
<member name="P:OpenTK.GLControl.WindowInfo">
|
||||
<summary>
|
||||
Gets the <see cref="T:OpenTK.Platform.IWindowInfo"/> for this instance.
|
||||
</summary>
|
||||
</member>
|
||||
<member name="T:OpenTK.GLControl.DelayUpdate">
|
||||
<summary>
|
||||
Needed to delay the invoke on OS X. Also needed because OpenTK is .NET 2, otherwise I'd use an inline Action.
|
||||
</summary>
|
||||
</member>
|
||||
<member name="M:OpenTK.Platform.MacOS.Agl.aglChoosePixelFormat(System.IntPtr,System.Int32,System.Int32[])">
|
||||
<summary>
|
||||
Use this overload only with IntPtr.Zero for the first argument.
|
||||
</summary>
|
||||
<param name="gdevs">
|
||||
</param>
|
||||
<param name="ndev">
|
||||
</param>
|
||||
<param name="attribs">
|
||||
</param>
|
||||
<returns>
|
||||
</returns>
|
||||
</member>
|
||||
<member name="T:OpenTK.Platform.MacOS.AglContext">
|
||||
<summary>
|
||||
AGL context implementation for WinForms compatibility.
|
||||
</summary>
|
||||
</member>
|
||||
</members>
|
||||
</doc>
|
Binary file not shown.
Binary file not shown.
File diff suppressed because it is too large
Load Diff
@ -1,4 +1,4 @@
|
||||
#version 130
|
||||
#version 330
|
||||
|
||||
in vec4 color;
|
||||
out vec4 outputColor;
|
||||
|
13
GameCreatorGroupProject/GameCreatorGroupProject/fs_sel.glsl
Normal file
13
GameCreatorGroupProject/GameCreatorGroupProject/fs_sel.glsl
Normal file
@ -0,0 +1,13 @@
|
||||
#version 330
|
||||
|
||||
in vec2 f_texcoord;
|
||||
out vec4 outputColor;
|
||||
|
||||
uniform sampler2D maintexture;
|
||||
|
||||
void
|
||||
main()
|
||||
{
|
||||
vec2 flipped_texcoord = vec2(f_texcoord.x, 1.0 - f_texcoord.y);
|
||||
outputColor = texture(maintexture, flipped_texcoord)*vec4(0.6,0.6,1.0,1.0);
|
||||
}
|
@ -1,4 +1,4 @@
|
||||
#version 130
|
||||
#version 330
|
||||
|
||||
in vec2 f_texcoord;
|
||||
out vec4 outputColor;
|
||||
|
Binary file not shown.
Binary file not shown.
@ -1,4 +1,4 @@
|
||||
#version 130
|
||||
#version 330
|
||||
|
||||
in vec3 vPosition;
|
||||
in vec3 vColor;
|
||||
|
@ -1,4 +1,4 @@
|
||||
#version 130
|
||||
#version 330
|
||||
|
||||
in vec3 vPosition;
|
||||
in vec2 texcoord;
|
||||
|
@ -1,6 +0,0 @@
|
||||
<?xml version="1.0" encoding="utf-8" ?>
|
||||
<configuration>
|
||||
<startup>
|
||||
<supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.5.2" />
|
||||
</startup>
|
||||
</configuration>
|
Binary file not shown.
@ -1,6 +0,0 @@
|
||||
<?xml version="1.0" encoding="utf-8" ?>
|
||||
<configuration>
|
||||
<startup>
|
||||
<supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.5.2" />
|
||||
</startup>
|
||||
</configuration>
|
@ -1,11 +0,0 @@
|
||||
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
|
||||
<assembly xmlns="urn:schemas-microsoft-com:asm.v1" manifestVersion="1.0">
|
||||
<assemblyIdentity version="1.0.0.0" name="MyApplication.app"/>
|
||||
<trustInfo xmlns="urn:schemas-microsoft-com:asm.v2">
|
||||
<security>
|
||||
<requestedPrivileges xmlns="urn:schemas-microsoft-com:asm.v3">
|
||||
<requestedExecutionLevel level="asInvoker" uiAccess="false"/>
|
||||
</requestedPrivileges>
|
||||
</security>
|
||||
</trustInfo>
|
||||
</assembly>
|
Binary file not shown.
Loading…
x
Reference in New Issue
Block a user