2010年3月22日月曜日

DxLibDotNet3_02の更新情報

3.01(3.00f)
[DllImport("DxLib.dll")]
から、3.02 エントリーポイントの変更
[DllImport("DxLib.dll", EntryPoint="宣言名")]

3.01(3.00f)から、3.02(新規追加)
MAX_SHADER_NUM

3.01(3.00f)から、3.02(新規追加)
DX_HANDLETYPE_SHADER

3.01(3.00f)から、3.02(新規追加)
DRAWPREP_NOTSHADERRESET

3.01(3.00f)から、3.02(新規追加)
public struct INT4
{
[FieldOffset(0)] public int x;
[FieldOffset(4)] public int y;
[FieldOffset(8)] public int z;
[FieldOffset(12)] public int w;
};

3.01(3.00f)から、3.02(新規追加)
public struct VERTEX2D
{
[FieldOffset(0)] public VECTOR pos;
[FieldOffset(12)] public float rhw;
[FieldOffset(16)] public COLOR_U8 dif;
[FieldOffset(20)] public float u;
[FieldOffset(24)] public float v;
};

[StructLayout(LayoutKind.Explicit)]
public struct VERTEX2DSHADER
{
[FieldOffset(0)] public VECTOR pos;
[FieldOffset(12)] public float rhw;
[FieldOffset(16)] public COLOR_U8 dif;
[FieldOffset(20)] public COLOR_U8 spc;
[FieldOffset(24)] public float u;
[FieldOffset(28)] public float v;
[FieldOffset(32)] public float su;
[FieldOffset(36)] public float sv;
};

3.01(3.00f)から、3.02(新規追加)
[StructLayout(LayoutKind.Explicit)]
public struct VERTEX3DSHADER
{
[FieldOffset(0)] public VECTOR pos;
[FieldOffset(12)] public VECTOR norm;
[FieldOffset(24)] public COLOR_U8 dif;
[FieldOffset(28)] public COLOR_U8 spc;
[FieldOffset(32)] public float u;
[FieldOffset(36)] public float v;
[FieldOffset(40)] public float su;
[FieldOffset(44)] public float sv;
};

3.01(3.00f)から、3.02(新規追加)
[DllImport("DxLib.dll", EntryPoint="dx_GetWindowSize")]
extern static int dx_GetWindowSize( out int Width, out int Height);
public static int GetWindowSize( out int Width, out int Height)
{
return dx_GetWindowSize( out Width , out Height );
}


3.01(3.00f)
[DllImport("DxLib.dll")]
extern static int dx_SetWindowSizeExtendRate( double ExRate);
public static int SetWindowSizeExtendRate( double ExRate)
{
return dx_SetWindowSizeExtendRate( ExRate );
}
から、3.02
[DllImport("DxLib.dll", EntryPoint="dx_SetWindowSizeExtendRate")]
extern static int dx_SetWindowSizeExtendRate( double ExRateX, double ExRateY);
public static int SetWindowSizeExtendRate( double ExRateX)
{
return dx_SetWindowSizeExtendRate( ExRateX , -1.0 );
}

3.01(3.00f)から、3.02(新規追加)
public static int SetWindowSizeExtendRate( double ExRateX, double ExRateY)
{
return dx_SetWindowSizeExtendRate( ExRateX , ExRateY );
}

3.01(3.00f)から、3.02(新規追加)
[DllImport("DxLib.dll", EntryPoint="dx_SetUseBackBufferTransColorFlag")]
extern static int dx_SetUseBackBufferTransColorFlag( int Flag);
public static int SetUseBackBufferTransColorFlag( int Flag)
{
return dx_SetUseBackBufferTransColorFlag( Flag );
}

3.01(3.00f)から、3.02(新規追加)
[DllImport("DxLib.dll", EntryPoint="dx_UpdateTransColorWindowRgn")]
extern static int dx_UpdateTransColorWindowRgn( );
public static int UpdateTransColorWindowRgn( )
{
return dx_UpdateTransColorWindowRgn( );
}

3.01(3.00f)から、3.02(新規追加)
[DllImport("DxLib.dll", EntryPoint="dx_SetChangeScreenModeGraphicsSystemResetFlag")]
extern static int dx_SetChangeScreenModeGraphicsSystemResetFlag( int Flag);
public static int SetChangeScreenModeGraphicsSystemResetFlag( int Flag)
{
return dx_SetChangeScreenModeGraphicsSystemResetFlag( Flag );
}

3.01(3.00f)から、3.02(新規追加)
[DllImport("DxLib.dll", EntryPoint="dx_DrawPrimitive2D")]
extern static int dx_DrawPrimitive2D( out VERTEX2D Vertex, int VertexNum, int PrimitiveType, int GrHandle, int TransFlag);
public static int DrawPrimitive2D( out VERTEX2D Vertex, int VertexNum, int PrimitiveType, int GrHandle, int TransFlag)
{
return dx_DrawPrimitive2D( out Vertex , VertexNum , PrimitiveType , GrHandle , TransFlag );
}

[DllImport("DxLib.dll", EntryPoint="dx_DrawPrimitiveIndexed2D")]
extern static int dx_DrawPrimitiveIndexed2D( out VERTEX2D Vertex, int VertexNum, out ushort Indices, int IndexNum, int PrimitiveType, int GrHandle, int TransFlag);
public static int DrawPrimitiveIndexed2D( out VERTEX2D Vertex, int VertexNum, out ushort Indices, int IndexNum, int PrimitiveType, int GrHandle, int TransFlag)
{
return dx_DrawPrimitiveIndexed2D( out Vertex , VertexNum , out Indices , IndexNum , PrimitiveType , GrHandle , TransFlag );
}

3.01(3.00f)から、3.02(新規追加)
[DllImport("DxLib.dll", EntryPoint="dx_GetValidShaderVersion")]
extern static int dx_GetValidShaderVersion( );
public static int GetValidShaderVersion( )
{
return dx_GetValidShaderVersion( );
}

[DllImport("DxLib.dll", EntryPoint="dx_LoadVertexShader")]
extern static int dx_LoadVertexShader( string FileName);
public static int LoadVertexShader( string FileName)
{
return dx_LoadVertexShader( FileName );
}

[DllImport("DxLib.dll", EntryPoint="dx_LoadPixelShader")]
extern static int dx_LoadPixelShader( string FileName);
public static int LoadPixelShader( string FileName)
{
return dx_LoadPixelShader( FileName );
}

[DllImport("DxLib.dll", EntryPoint="dx_DeleteShader")]
extern static int dx_DeleteShader( int ShaderHandle);
public static int DeleteShader( int ShaderHandle)
{
return dx_DeleteShader( ShaderHandle );
}

[DllImport("DxLib.dll", EntryPoint="dx_InitShader")]
extern static int dx_InitShader( );
public static int InitShader( )
{
return dx_InitShader( );
}

[DllImport("DxLib.dll", EntryPoint="dx_GetConstIndexToShader")]
extern static int dx_GetConstIndexToShader( string ConstantName, int ShaderHandle);
public static int GetConstIndexToShader( string ConstantName, int ShaderHandle)
{
return dx_GetConstIndexToShader( ConstantName , ShaderHandle );
}

[DllImport("DxLib.dll", EntryPoint="dx_SetVSConstF")]
extern static int dx_SetVSConstF( int ConstantIndex, FLOAT4 Param);
public static int SetVSConstF( int ConstantIndex, FLOAT4 Param)
{
return dx_SetVSConstF( ConstantIndex , Param );
}

[DllImport("DxLib.dll", EntryPoint="dx_SetVSConstFMtx")]
extern static int dx_SetVSConstFMtx( int ConstantIndex, MATRIX Param);
public static int SetVSConstFMtx( int ConstantIndex, MATRIX Param)
{
return dx_SetVSConstFMtx( ConstantIndex , Param );
}

[DllImport("DxLib.dll", EntryPoint="dx_SetVSConstI")]
extern static int dx_SetVSConstI( int ConstantIndex, INT4 Param);
public static int SetVSConstI( int ConstantIndex, INT4 Param)
{
return dx_SetVSConstI( ConstantIndex , Param );
}

[DllImport("DxLib.dll", EntryPoint="dx_SetVSConstB")]
extern static int dx_SetVSConstB( int ConstantIndex, int Param);
public static int SetVSConstB( int ConstantIndex, int Param)
{
return dx_SetVSConstB( ConstantIndex , Param );
}

[DllImport("DxLib.dll", EntryPoint="dx_SetVSConstFArray")]
extern static int dx_SetVSConstFArray( int ConstantIndex, out FLOAT4 ParamArray, int ParamNum);
public static int SetVSConstFArray( int ConstantIndex, out FLOAT4 ParamArray, int ParamNum)
{
return dx_SetVSConstFArray( ConstantIndex , out ParamArray , ParamNum );
}

[DllImport("DxLib.dll", EntryPoint="dx_SetVSConstFMtxArray")]
extern static int dx_SetVSConstFMtxArray( int ConstantIndex, out MATRIX ParamArray, int ParamNum);
public static int SetVSConstFMtxArray( int ConstantIndex, out MATRIX ParamArray, int ParamNum)
{
return dx_SetVSConstFMtxArray( ConstantIndex , out ParamArray , ParamNum );
}

[DllImport("DxLib.dll", EntryPoint="dx_SetVSConstIArray")]
extern static int dx_SetVSConstIArray( int ConstantIndex, out INT4 ParamArray, int ParamNum);
public static int SetVSConstIArray( int ConstantIndex, out INT4 ParamArray, int ParamNum)
{
return dx_SetVSConstIArray( ConstantIndex , out ParamArray , ParamNum );
}

[DllImport("DxLib.dll", EntryPoint="dx_SetVSConstBArray")]
extern static int dx_SetVSConstBArray( int ConstantIndex, out int ParamArray, int ParamNum);
public static int SetVSConstBArray( int ConstantIndex, out int ParamArray, int ParamNum)
{
return dx_SetVSConstBArray( ConstantIndex , out ParamArray , ParamNum );
}

[DllImport("DxLib.dll", EntryPoint="dx_SetPSConstF")]
extern static int dx_SetPSConstF( int ConstantIndex, FLOAT4 Param);
public static int SetPSConstF( int ConstantIndex, FLOAT4 Param)
{
return dx_SetPSConstF( ConstantIndex , Param );
}

[DllImport("DxLib.dll", EntryPoint="dx_SetPSConstFMtx")]
extern static int dx_SetPSConstFMtx( int ConstantIndex, MATRIX Param);
public static int SetPSConstFMtx( int ConstantIndex, MATRIX Param)
{
return dx_SetPSConstFMtx( ConstantIndex , Param );
}

[DllImport("DxLib.dll", EntryPoint="dx_SetPSConstI")]
extern static int dx_SetPSConstI( int ConstantIndex, INT4 Param);
public static int SetPSConstI( int ConstantIndex, INT4 Param)
{
return dx_SetPSConstI( ConstantIndex , Param );
}

[DllImport("DxLib.dll", EntryPoint="dx_SetPSConstB")]
extern static int dx_SetPSConstB( int ConstantIndex, int Param);
public static int SetPSConstB( int ConstantIndex, int Param)
{
return dx_SetPSConstB( ConstantIndex , Param );
}

[DllImport("DxLib.dll", EntryPoint="dx_SetPSConstFArray")]
extern static int dx_SetPSConstFArray( int ConstantIndex, out FLOAT4 ParamArray, int ParamNum);
public static int SetPSConstFArray( int ConstantIndex, out FLOAT4 ParamArray, int ParamNum)
{
return dx_SetPSConstFArray( ConstantIndex , out ParamArray , ParamNum );
}

[DllImport("DxLib.dll", EntryPoint="dx_SetPSConstFMtxArray")]
extern static int dx_SetPSConstFMtxArray( int ConstantIndex, out MATRIX ParamArray, int ParamNum);
public static int SetPSConstFMtxArray( int ConstantIndex, out MATRIX ParamArray, int ParamNum)
{
return dx_SetPSConstFMtxArray( ConstantIndex , out ParamArray , ParamNum );
}

[DllImport("DxLib.dll", EntryPoint="dx_SetPSConstIArray")]
extern static int dx_SetPSConstIArray( int ConstantIndex, out INT4 ParamArray, int ParamNum);
public static int SetPSConstIArray( int ConstantIndex, out INT4 ParamArray, int ParamNum)
{
return dx_SetPSConstIArray( ConstantIndex , out ParamArray , ParamNum );
}

[DllImport("DxLib.dll", EntryPoint="dx_SetPSConstBArray")]
extern static int dx_SetPSConstBArray( int ConstantIndex, out int ParamArray, int ParamNum);
public static int SetPSConstBArray( int ConstantIndex, out int ParamArray, int ParamNum)
{
return dx_SetPSConstBArray( ConstantIndex , out ParamArray , ParamNum );
}

[DllImport("DxLib.dll", EntryPoint="dx_SetUseTextureToShader")]
extern static int dx_SetUseTextureToShader( int StageIndex, int GraphHandle);
public static int SetUseTextureToShader( int StageIndex, int GraphHandle)
{
return dx_SetUseTextureToShader( StageIndex , GraphHandle );
}

[DllImport("DxLib.dll", EntryPoint="dx_SetUseVertexShader")]
extern static int dx_SetUseVertexShader( int ShaderHandle);
public static int SetUseVertexShader( int ShaderHandle)
{
return dx_SetUseVertexShader( ShaderHandle );
}

[DllImport("DxLib.dll", EntryPoint="dx_SetUsePixelShader")]
extern static int dx_SetUsePixelShader( int ShaderHandle);
public static int SetUsePixelShader( int ShaderHandle)
{
return dx_SetUsePixelShader( ShaderHandle );
}

[DllImport("DxLib.dll", EntryPoint="dx_DrawPrimitive2DToShader")]
extern static int dx_DrawPrimitive2DToShader( out VERTEX2DSHADER Vertex, int VertexNum, int PrimitiveType);
public static int DrawPrimitive2DToShader( out VERTEX2DSHADER Vertex, int VertexNum, int PrimitiveType)
{
return dx_DrawPrimitive2DToShader( out Vertex , VertexNum , PrimitiveType );
}

[DllImport("DxLib.dll", EntryPoint="dx_DrawPrimitive3DToShader")]
extern static int dx_DrawPrimitive3DToShader( out VERTEX3DSHADER Vertex, int VertexNum, int PrimitiveType);
public static int DrawPrimitive3DToShader( out VERTEX3DSHADER Vertex, int VertexNum, int PrimitiveType)
{
return dx_DrawPrimitive3DToShader( out Vertex , VertexNum , PrimitiveType );
}

[DllImport("DxLib.dll", EntryPoint="dx_DrawPrimitiveIndexed2DToShader")]
extern static int dx_DrawPrimitiveIndexed2DToShader( out VERTEX2DSHADER Vertex, int VertexNum, out ushort Indices, int IndexNum, int PrimitiveType);
public static int DrawPrimitiveIndexed2DToShader( out VERTEX2DSHADER Vertex, int VertexNum, out ushort Indices, int IndexNum, int PrimitiveType)
{
return dx_DrawPrimitiveIndexed2DToShader( out Vertex , VertexNum , out Indices , IndexNum , PrimitiveType );
}

[DllImport("DxLib.dll", EntryPoint="dx_DrawPrimitiveIndexed3DToShader")]
extern static int dx_DrawPrimitiveIndexed3DToShader( out VERTEX3DSHADER Vertex, int VertexNum, out ushort Indices, int IndexNum, int PrimitiveType);
public static int DrawPrimitiveIndexed3DToShader( out VERTEX3DSHADER Vertex, int VertexNum, out ushort Indices, int IndexNum, int PrimitiveType)
{
return dx_DrawPrimitiveIndexed3DToShader( out Vertex , VertexNum , out Indices , IndexNum , PrimitiveType );
}
3.01(3.00f)から、3.02(新規追加)
[DllImport("DxLib.dll", EntryPoint="dx_SetAeroDisableFlag")]
extern static int dx_SetAeroDisableFlag( int Flag);
public static int SetAeroDisableFlag( int Flag)
{
return dx_SetAeroDisableFlag( Flag );
}

3.01(3.00f)から、3.02(新規追加)
[DllImport("DxLib.dll", EntryPoint="dx_GetLastUpdateTimeMovieToGraph")]
extern static int dx_GetLastUpdateTimeMovieToGraph( int GraphHandle);
public static int GetLastUpdateTimeMovieToGraph( int GraphHandle)
{
return dx_GetLastUpdateTimeMovieToGraph( GraphHandle );
}

3.01(3.00f)から、3.02(新規追加)
[DllImport("DxLib.dll", EntryPoint="dx_GetCameraViewMatrix")]
extern static MATRIX dx_GetCameraViewMatrix( );
public static MATRIX GetCameraViewMatrix( )
{
return dx_GetCameraViewMatrix( );
}

3.01(3.00f)から、3.02(新規追加)
[DllImport("DxLib.dll", EntryPoint="dx_GetDrawScreenSoftImage")]
extern static int dx_GetDrawScreenSoftImage( int x1, int y1, int x2, int y2, int SIHandle);
public static int GetDrawScreenSoftImage( int x1, int y1, int x2, int y2, int SIHandle)
{
return dx_GetDrawScreenSoftImage( x1 , y1 , x2 , y2 , SIHandle );
}

[DllImport("DxLib.dll", EntryPoint="dx_UpdateLayerdWindowForSoftImage")]
extern static int dx_UpdateLayerdWindowForSoftImage( int SIHandle);
public static int UpdateLayerdWindowForSoftImage( int SIHandle)
{
return dx_UpdateLayerdWindowForSoftImage( SIHandle );
}

3.01(3.00f)から、3.02(新規追加)
[DllImport("DxLib.dll", EntryPoint="dx_BltSoftImageWithTransColor")]
extern static int dx_BltSoftImageWithTransColor( int SrcX, int SrcY, int SrcSizeX, int SrcSizeY, int SrcSIHandle, int DestX, int DestY, int DestSIHandle, int Tr, int Tg, int Tb, int Ta);
public static int BltSoftImageWithTransColor( int SrcX, int SrcY, int SrcSizeX, int SrcSizeY, int SrcSIHandle, int DestX, int DestY, int DestSIHandle, int Tr, int Tg, int Tb, int Ta)
{
return dx_BltSoftImageWithTransColor( SrcX , SrcY , SrcSizeX , SrcSizeY , SrcSIHandle , DestX , DestY , DestSIHandle , Tr , Tg , Tb , Ta );
}

[DllImport("DxLib.dll", EntryPoint="dx_BltSoftImageWithAlphaBlend")]
extern static int dx_BltSoftImageWithAlphaBlend( int SrcX, int SrcY, int SrcSizeX, int SrcSizeY, int SrcSIHandle, int DestX, int DestY, int DestSIHandle, int Opacity);
public static int BltSoftImageWithAlphaBlend( int SrcX, int SrcY, int SrcSizeX, int SrcSizeY, int SrcSIHandle, int DestX, int DestY, int DestSIHandle)
{
return dx_BltSoftImageWithAlphaBlend( SrcX , SrcY , SrcSizeX , SrcSizeY , SrcSIHandle , DestX , DestY , DestSIHandle , 255 );
}
public static int BltSoftImageWithAlphaBlend( int SrcX, int SrcY, int SrcSizeX, int SrcSizeY, int SrcSIHandle, int DestX, int DestY, int DestSIHandle, int Opacity)
{
return dx_BltSoftImageWithAlphaBlend( SrcX , SrcY , SrcSizeX , SrcSizeY , SrcSIHandle , DestX , DestY , DestSIHandle , Opacity );
}

3.01(3.00f)から、3.02(新規追加)
[DllImport("DxLib.dll", EntryPoint="dx_SetCurrentPositionSoundMem")]
extern static int dx_SetCurrentPositionSoundMem( int SamplePosition, int SoundHandle);
public static int SetCurrentPositionSoundMem( int SamplePosition, int SoundHandle)
{
return dx_SetCurrentPositionSoundMem( SamplePosition , SoundHandle );
}

[DllImport("DxLib.dll", EntryPoint="dx_GetCurrentPositionSoundMem")]
extern static int dx_GetCurrentPositionSoundMem( int SoundHandle);
public static int GetCurrentPositionSoundMem( int SoundHandle)
{
return dx_GetCurrentPositionSoundMem( SoundHandle );
}

3.01(3.00f)から、3.02(新規追加)
[DllImport("DxLib.dll", EntryPoint="dx_SetLoopStartTimePosSoundMem")]
extern static int dx_SetLoopStartTimePosSoundMem( int LoopStartTime, int SoundHandle);
public static int SetLoopStartTimePosSoundMem( int LoopStartTime, int SoundHandle)
{
return dx_SetLoopStartTimePosSoundMem( LoopStartTime , SoundHandle );
}

[DllImport("DxLib.dll", EntryPoint="dx_SetLoopStartSamplePosSoundMem")]
extern static int dx_SetLoopStartSamplePosSoundMem( int LoopStartSamplePosition, int SoundHandle);
public static int SetLoopStartSamplePosSoundMem( int LoopStartSamplePosition, int SoundHandle)
{
return dx_SetLoopStartSamplePosSoundMem( LoopStartSamplePosition , SoundHandle );
}

3.01(3.00f)から、3.02(新規追加)
[DllImport("DxLib.dll", EntryPoint="dx_MV1SetAttachAnimBlendRateToFrame")]
extern static int dx_MV1SetAttachAnimBlendRateToFrame( int MHandle, int AttachIndex, int FrameIndex, float Rate, int SetChild);
public static int MV1SetAttachAnimBlendRateToFrame( int MHandle, int AttachIndex, int FrameIndex, float Rate)
{
return dx_MV1SetAttachAnimBlendRateToFrame( MHandle , AttachIndex , FrameIndex , Rate , TRUE );
}
public static int MV1SetAttachAnimBlendRateToFrame( int MHandle, int AttachIndex, int FrameIndex, float Rate, int SetChild)
{
return dx_MV1SetAttachAnimBlendRateToFrame( MHandle , AttachIndex , FrameIndex , Rate , SetChild );
}

[DllImport("DxLib.dll", EntryPoint="dx_MV1GetAttachAnimBlendRateToFrame")]
extern static float dx_MV1GetAttachAnimBlendRateToFrame( int MHandle, int AttachIndex, int FrameIndex);
public static float MV1GetAttachAnimBlendRateToFrame( int MHandle, int AttachIndex, int FrameIndex)
{
return dx_MV1GetAttachAnimBlendRateToFrame( MHandle , AttachIndex , FrameIndex );
}