Unify as much of D3D and OpenGL as possible

This commit is contained in:
Flamefire committed 2014-09-11 21:58:30 +02:00
1 parent 46acaf092a
commit 76ededf9f3
7 files changed
+710 -866

No files matched your search

+5 -5
View File
@@ -19,12 +19,12 @@ using System.Drawing;
namespace VocaluxeLib.Draw
{
/// <summary>
/// Reference to a texture in the drawing driver
/// </summary>
public class CTexture
{
public readonly int ID;
public int PBO;
//Only used by OpenGL (the texture "name" according to the specs)
public int Name = -1;
public string TexturePath = "";
@@ -117,8 +117,8 @@ namespace VocaluxeLib.Draw
private void _CalcRatios()
{
WidthRatio = (float)_DataSize.Width / _W2;
HeightRatio = (float)_DataSize.Height / _H2;
WidthRatio = (float)_DataSize.Width / _W2;
HeightRatio = (float)_DataSize.Height / _H2;
}
}
}
-2
View File
@@ -136,7 +136,6 @@ namespace VocaluxeLib
void LoadPreview(CSong song, float start = 0f);
void PlayPreview(float start = -1f);
void StopPreview();
}
public interface IDrawing
@@ -338,6 +337,5 @@ namespace VocaluxeLib
CTexture GetVideoTexture();
bool IsPlaying();
float GetLength();
}
}