Jump to content
Xtreme .Net Talk

smremde

Members
  • Posts

    6
  • Joined

  • Last visited

Everything posted by smremde

  1. the soluction i found was to use System.Drawing.Color and the Microsoft.DirectX.Direct3D.ColorOperator module to manipulate them from the ms dx9 sdk documentation:
  2. i have this class Imports System.Runtime.InteropServices Public Class Timer Private m_Frequency As Long Private m_Count As Long Public Sub New() QueryPerformanceFrequency(m_Frequency) End Sub Public ReadOnly Property FTime() As Double Get QueryPerformanceCounter(m_Count) Return m_Count / m_Frequency End Get End Property <DllImport("Kernel32.dll")> Private Function QueryPerformanceCounter(ByRef lpPerformanceCount As Long) As Boolean End Function <DllImport("Kernel32.dll")> Private Function QueryPerformanceFrequency(ByRef lpFrequency As Long) As Boolean End Function End Class and i get exceptions here QueryPerformanceFrequency(m_Frequency) and here QueryPerformanceCounter(m_Count): An unhandled exception of type 'System.InvalidProgramException' occurred in xfengine.dll Additional information: Error: PInvoke item (field,method) must be Static. The program '[1588] XF2.exe' has exited with code 0 (0x0). xfengine.dll is my class library containing the high resolution timer and XF2.exe is the console app using xfengine.dll any help much appreciated Stephen
  3. Problems i copied your class, adding Imports System.Runtime.InteropServicesto the top and i get exceptions: An unhandled exception of type 'System.InvalidProgramException' occurred in xfengine.dll Additional information: Error: PInvoke item (field,method) must be Static. The program '[1588] XF2.exe' has exited with code 0 (0x0). xfengine.dll is my class library containing the high resolution timer and XF2.exe is the console app using xfengine.dll any help much appreciated Stephen
  4. found it!
  5. is there a D3DXColorLerp in managed dx9 or should i write it myself?
  6. does anyone know the managed DX9 equivelent of DX8's D3DCOLORVALUE - im trying to convert an vb app to vb.net. also the functions that go with colouts like D3DXColorLerp ...
×
×
  • Create New...