Commit Graph

1032 Commits

Author SHA1 Message Date
Alexandre Julliard d72394e7fa d3dx9_36/tests: Remove useless casts. 2013-01-18 13:28:56 +01:00
Christian Costa 64a88a2d83 d3dx9_36: Make variables static in xfile tests. 2013-01-18 13:28:56 +01:00
Christian Costa 45e43dc5d0 d3dx9_36: Implement ID3DXFileDataImpl_Lock and ID3DXFileDataImpl_Unlock + tests. 2013-01-18 13:28:55 +01:00
Christian Costa 8aa700e7ba d3dx9_36: Initialize properly object in CreateEnumObject. 2013-01-18 13:28:55 +01:00
Rico Schüller 2fb6dcb3f2 d3dx9/tests: Use D3DXFloat16To32Array() instead of a custom function. 2013-01-17 12:16:13 +01:00
Rico Schüller 7c5517da6f d3dx9: Add support for D3DFMT_A16B16G16R16. 2013-01-16 12:20:27 +01:00
Rico Schüller 25ce3a4220 d3dx9: Add support for D3DFMT_A32B32G32R32F. 2013-01-16 12:20:23 +01:00
Christian Costa fc8dfe60ea d3dx9_36: Implement ID3DXFileDataImpl_GetId. 2013-01-14 11:04:08 +01:00
Christian Costa f8d908938a d3dx9_36: Implement ID3DXFileDataImpl_GetName. 2013-01-14 11:04:03 +01:00
Rico Schüller c1d1d74614 d3dx9: Use lowercase hexadecimal values. 2013-01-11 11:58:34 +01:00
Rico Schüller 43f30fe8d6 d3dx9: Add support for D3DFMT_A16B16G16R16F. 2013-01-11 11:58:16 +01:00
Rico Schüller f7d877061d d3dx9: Use all 32 bits as mask. 2013-01-10 19:22:36 +01:00
Rico Schüller 98ef0ca8e6 d3dx9: Shift only as much as needed. 2013-01-10 19:21:31 +01:00
Rico Schüller 275f784009 d3dx9: Introduce a function for filling a texture. 2013-01-10 19:19:49 +01:00
Christian Costa 8113346d3a d3dx9_36: Implement ID3DXFileDataImpl_GetType. 2013-01-10 12:23:40 +01:00
Christian Costa c5d96f40d2 d3dx9_36: Implement ID3DXFileEnumObjectImpl_GetChildren and ID3DXFileEnumObjectImpl_GetChild. 2013-01-10 12:23:36 +01:00
Christian Costa ba6932459a d3dx9_36: Finish implementation of ID3DXFileImpl_CreateEnumObject and add stubbed interface for ID3DXFileData. 2013-01-09 17:39:35 +01:00
Christian Costa 5c5deb34c8 d3dx9_36: Implement partially ID3DXFileImpl_CreateEnumObject with stubbed ID3DXFileEnumObject interface. 2013-01-08 19:08:48 +01:00
Rico Schüller 7ff6afd091 d3dx9: Remove unused variable. 2013-01-08 16:35:33 +01:00
Rico Schüller e7cd340e8a d3dx9: Constify some variables. 2013-01-08 16:35:33 +01:00
Rico Schüller 87ef00fc34 d3dx9: Use sizeof variable, not type. 2013-01-08 16:35:33 +01:00
Rico Schüller 6cb4301021 d3dx9: Handle invalid byte code in D3DXGetShaderConstantTableEx(). 2013-01-08 16:35:32 +01:00
Rico Schüller a847b9dddb d3dx9: Always set the table = NULL in D3DXGetShaderConstantTableEx(). 2013-01-08 16:35:32 +01:00
Rico Schüller bc4a4f5f3b d3dx9: Handle invalid byte code in D3DXFindShaderComment(). 2013-01-08 16:35:31 +01:00
Christian Costa 4778a5e27d d3dx9_36: Add support for RT_BITMAP resource type since it is in DIB format D3DXIFF_DIB. 2013-01-07 19:33:09 +01:00
Francois Gouget a41f63dfcb d3dx9_36: Make error_dxfile_to_d3dxfile() and test_templates() static. 2013-01-07 13:38:21 +01:00
Francois Gouget f963f93964 Assorted spelling fixes. 2013-01-07 11:10:40 +01:00
Christian Costa b742b98c55 d3dx9_36: Implement ID3DXFileImpl_RegisterTemplates + tests. 2013-01-04 12:14:07 +01:00
Andrew Talbot 1a45569f72 d3dx9_36: Avoid signed-unsigned integer comparisons. 2013-01-04 11:59:32 +01:00
Andrew Talbot 2cf00836ef d3dx9_36: Avoid signed-unsigned integer comparisons. 2013-01-03 11:52:08 +01:00
Christian Costa dabde6a04f d3dx9_36: Check proper signature for DIB files. 2012-12-27 18:47:54 +01:00
Christian Costa 95433ccd3c d3dx9_36: Implement D3DXFileCreate with stubbed ID3DXFile interface + basic tests. 2012-12-27 18:47:54 +01:00
Francois Gouget 7b2d297d3e d3dx9_36/tests: Use software vertex processing so the tests can run on Intel GM950 graphics cards. 2012-12-14 17:37:43 +01:00
Francois Gouget a20db48dae d3dx9_36/tests: Skip some tests when DXT5 textures are not supported. 2012-12-14 11:49:54 +01:00
Rico Schüller 2cb1372350 d3dx9: Improve D3DXMatrixRotationYawPitchRoll(). 2012-12-05 12:44:47 +01:00
Henri Verbeet c4ef74bd19 d3dx9: Avoid LPD3DXALLOCATEHIERARCHY. 2012-12-05 12:43:31 +01:00
Henri Verbeet 36ac98df73 d3dx9: Avoid LPD3DXBUFFER. 2012-12-03 12:37:26 +01:00
Henri Verbeet d856b3a6d2 d3dx9: Avoid LPD3DXLINE. 2012-12-03 12:37:20 +01:00
Detlef Riekenberg 8b98b6a532 d3dx9_36/tests: Fix broken line test. 2012-11-30 11:43:38 +01:00
Henri Verbeet c109249445 d3dx9: Avoid LPD3DXEFFECTSTATEMANAGER. 2012-11-30 11:42:37 +01:00
Henri Verbeet 8678e890e6 d3dx9: Avoid LPD3DXEFFECTPOOL. 2012-11-30 11:42:32 +01:00
Henri Verbeet 8c94757c2b d3dx9: Avoid LPD3DXMATRIXSTACK. 2012-11-29 00:16:38 +01:00
Henri Verbeet d480f9e1a8 d3dx9: Avoid LPD3DXMESH. 2012-11-29 00:16:26 +01:00
Henri Verbeet 361cf636cc d3dx9: Avoid LPD3DXSKININFO. 2012-11-28 14:42:03 +01:00
Henri Verbeet 69eeb35e51 d3dx9: Avoid LPD3DXINCLUDE. 2012-11-26 11:50:15 +01:00
Henri Verbeet 63acbcbf8a d3dx9: Avoid LPD3DXCONSTANTTABLE. 2012-11-23 14:40:24 +01:00
Nozomi Kodama 965e27149a d3dx9_36: Fix the case out = in for D3DXSHRotate. 2012-11-13 19:27:04 +01:00
Nozomi Kodama 1ca9ed90e3 d3dx9_36: Implement handy computations for small orders in D3DXSHRotate. 2012-11-13 19:25:29 +01:00
Józef Kucia 3e264ced0f d3dx9: Handle NULL arguments in D3DXVec3Unproject. 2012-11-08 17:21:18 +01:00
Józef Kucia a5d5650730 d3dx9: Handle NULL arguments in D3DXVec3Project. 2012-11-08 17:21:15 +01:00
André Hentschel 7d1fa526e6 d3dx9_36: D3DXCreateFontIndirectW seems no longer to be a stub. 2012-11-05 11:40:05 +01:00
André Hentschel e15618a896 d3dx9_36: Return on error (coverity). 2012-11-05 11:14:17 +01:00
Nozomi Kodama c59efbed77 d3dx9_36: Add tests for D3DXSHRotateZ. 2012-11-01 19:14:53 +01:00
Józef Kucia 7bfd634286 d3dx9: Handle NULL viewport in D3DXVec3Unproject. 2012-10-29 10:47:04 +01:00
Józef Kucia d1a99feee6 d3dx9: Correct the FIXME message in ID3DXFont::GetGlyphData. 2012-10-29 10:47:04 +01:00
Józef Kucia 4f50e751e1 d3dx9: A simple copy isn't enough when a color key is provided. 2012-10-29 10:47:04 +01:00
Józef Kucia 08a5dbbb8e d3dx9: Introduce a function for copying pixels. 2012-10-29 10:47:03 +01:00
Józef Kucia a4df391976 d3dx9: Rename point_filter_simple_data to point_filter_argb_pixels. 2012-10-29 10:47:03 +01:00
Józef Kucia a513da063f d3dx9: Rename copy_simple_data to convert_argb_pixels. 2012-10-29 10:47:03 +01:00
Henri Verbeet 4ba6974345 d3dx9: Avoid LPDIRECT3DDEVICE9. 2012-10-29 10:47:03 +01:00
André Hentschel 904cdc46eb d3dx9_36: Free object on error (coverity). 2012-10-26 11:48:18 +02:00
Henri Verbeet fff88819d0 d3dx9: Avoid LPDIRECT3DVERTEXBUFFER9. 2012-10-25 22:27:37 +02:00
Henri Verbeet d9c68bd191 d3dx9: Avoid LPDIRECT3DINDEXBUFFER9. 2012-10-25 22:27:34 +02:00
Henri Verbeet c4f7bcc653 d3dx9: Avoid LPDIRECT3DBASETEXTURE9. 2012-10-25 22:27:29 +02:00
Henri Verbeet 3280939563 d3dx9: Avoid LPDIRECT3DTEXTURE9. 2012-10-25 11:48:39 +02:00
Henri Verbeet 9b19d75519 d3dx9: Avoid LPDIRECT3DCUBETEXTURE9. 2012-10-25 11:48:35 +02:00
André Hentschel 8f6b6303ec d3dx9_36: Fix free of address-of expression (coverity). 2012-10-25 11:47:43 +02:00
André Hentschel 472010911d d3dx9_36/tests: Fix sizeof to be more portable (coverity). 2012-10-24 11:33:40 +02:00
Henri Verbeet 80382486aa d3dx9: Avoid LPDIRECT3DVOLUMETEXTURE9. 2012-10-24 11:24:31 +02:00
Henri Verbeet 0c84de4455 d3dx9: Avoid LPDIRECT3DVERTEXSHADER9. 2012-10-24 11:24:28 +02:00
Henri Verbeet 4704e78337 d3dx9: Avoid LPDIRECT3DPIXELSHADER9. 2012-10-23 12:11:30 +02:00
Józef Kucia 0146b5568a d3dx9/tests: Add a simple test for filling compressed textures. 2012-10-23 12:08:10 +02:00
Józef Kucia 15d642803b d3dx9/tests: Add tests for filling floating-point textures. 2012-10-23 12:08:06 +02:00
Józef Kucia 2c19f22c8a d3dx9: Do not try to fill textures other than ARGB in fill texture functions. 2012-10-23 12:07:53 +02:00
Józef Kucia 84935d4312 d3dx9: Introduce a separate pixel format type for compressed pixel formats. 2012-10-23 12:07:47 +02:00
Józef Kucia cdc9f283fb d3dx9/tests: Only release a texture when it was created. 2012-10-23 12:07:39 +02:00
Rico Schüller e74a99b71a d3dx9: Fix calculation when in and out overlap in D3DXSHRotateZ(). 2012-10-18 19:34:12 +02:00
Nozomi Kodama 80b73ffcef d3dx9_36: Remove useless casts. 2012-10-11 21:20:27 +02:00
Nozomi Kodama 46fca31c4f d3dx9_36/tests: Remove useless casts. 2012-10-03 13:10:46 +02:00
Nozomi Kodama 3d5c61cdcd d3dx9_36/tests: Relax an equality between floats. 2012-10-03 13:10:45 +02:00
Nozomi Kodama 9c823d04b6 d3dx9_36/tests: Avoid a potential out of bound access. 2012-10-03 13:10:45 +02:00
Nozomi Kodama 584c24050e d3dx9_36/tests: Speed up some tests. 2012-10-03 13:10:45 +02:00
Nozomi Kodama b8cfe42326 d3dx9_36: Implement D3DXSHMultiply4. 2012-10-03 13:10:45 +02:00
Rico Schüller ec9db0a11f d3dx9: Fix D3DXMatrixAffineTransformation() and add some tests. 2012-10-01 18:49:11 +02:00
Rico Schüller effdcf98d6 d3dx9: Improve traces for D3DXSHMultiply2/3(). 2012-09-28 11:27:40 +02:00
Rico Schüller 3e24dc642b d3dx9: Use float functions in D3DXMatrixRotationAxis(). 2012-09-28 11:27:34 +02:00
Rico Schüller 945e81b341 d3dx9: Improve D3DXMatrixAffineTransformation(). 2012-09-28 11:27:21 +02:00
Rico Schüller c131bee4fc d3dx9: Improve D3DXMatrixAffineTransformation2D(). 2012-09-28 11:27:13 +02:00
Rico Schüller aa344fc88d d3dx9: Use float function in D3DXFresnelTerm(). 2012-09-28 11:27:08 +02:00
Rico Schüller e420409b8d d3dx9: Use float function in D3DXPlaneNormalize(). 2012-09-28 11:27:01 +02:00
Rico Schüller ef65fddaf9 d3dx9: Use float functions in D3DXQuaternionExp(). 2012-09-27 13:12:57 +02:00
Rico Schüller 9a281e5dd2 d3dx9: Use float functions in D3DXQuaternionRotationMatrix(). 2012-09-27 13:12:48 +02:00
Rico Schüller e921953374 d3dx9: Use float functions in D3DXQuaternionLn(). 2012-09-27 13:12:44 +02:00
Rico Schüller 5accb12c12 d3dx9: Avoid variable assignment in D3DXQuaternionNormalize(). 2012-09-26 14:40:53 +02:00
Rico Schüller db8df8bc7c d3dx9: Use float functions in D3DXQuaternionRotationAxis(). 2012-09-26 14:40:53 +02:00
Rico Schüller 7d75ad8230 d3dx9: Use float functions in D3DXQuaternionRotationYawPitchRoll(). 2012-09-26 14:40:52 +02:00
Rico Schüller ce319e9d53 d3dx9: Use float functions in D3DXQuaternionSlerp(). 2012-09-26 14:40:52 +02:00
Rico Schüller 398eb27538 d3dx9: Use float functions in D3DXSHRotateZ(). 2012-09-26 14:40:51 +02:00
Rico Schüller 82a800c128 d3dx9: Improve RegisterCount calculation for D3DXRS_INT4/BOOL. 2012-09-26 14:40:51 +02:00
Rico Schüller 3eb26010d8 d3dx9: Fix shader constant byte calculation. 2012-09-26 14:40:50 +02:00
Rico Schüller e817bc3f04 d3dx9: Handle D3DXPT_VOID in get_float/bool/int(). 2012-09-26 14:40:50 +02:00
Francois Gouget 91c7dca35f d3dx9_36/tests: Remove spaces before '\n's in ok() calls. 2012-09-26 14:40:49 +02:00
Gerald Pfeifer f807666d2b d3dx9_36: Fix initialization of header in save_dds_surface_to_memory. save_dds_surface_to_memory. 2012-09-26 11:00:06 +02:00
Detlef Riekenberg a695062447 d3dx9_36/tests: Fix copy & paste error in ok messages. 2012-09-26 10:59:00 +02:00
Nozomi Kodama 1f85d64b19 d3dx9: Implement D3DXSHRotate. 2012-09-25 11:39:28 +02:00
Nozomi Kodama c69a496461 d3dx9: Implement D3DXSHEvalDirectionalLight. 2012-09-25 11:38:53 +02:00
Nozomi Kodama 7c5d93b504 d3dx9: Simplify D3DXVector*Normalize. 2012-09-25 11:32:45 +02:00
Nozomi Kodama 10d1253971 d3dx9: Simplify D3DXComputeBoundingSphere. 2012-09-25 11:32:15 +02:00
Christian Costa 12d11833f7 d3dx9_36: Cube texture can be loaded as a simple texture. The first face texture is taken in that case. 2012-09-24 22:27:42 +02:00
Józef Kucia 934293c1ec d3dx9: Implement conversion from D3DFORMAT to DDS pixel format for RGB pixel formats. 2012-09-24 22:27:29 +02:00
Józef Kucia 94ab09a226 d3dx9/tests: Add a more detailed test for saving a surface to a DDS file. 2012-09-24 22:27:29 +02:00
Józef Kucia bf4201ea58 d3dx9: Implement the support for saving a surface to a DDS file. 2012-09-24 22:27:29 +02:00
Józef Kucia 8f00a63161 d3dx9: Use 4 spaces per indent level in get_image_info_from_dds(). 2012-09-24 22:27:29 +02:00
Józef Kucia 00ea54f64f d3dx9: Introduce a function for calculating the expected size of a DDS file. 2012-09-24 22:27:29 +02:00
Christian Costa fcb9c5fadb d3dx9_36: Add stub for D3DXCleanMesh. 2012-09-24 16:38:16 +02:00
Francois Gouget ae3a919ba0 d3dx9_36/tests: Fix compilation on systems that don't support nameless structs or unions. 2012-09-24 10:03:37 +02:00
Rico Schüller 8fb16c955b d3dx9: Move transpose matrix into get_matrix(). 2012-09-14 11:52:02 +02:00
Rico Schüller 5b06a2d113 d3dx9: Move transpose matrix into set_matrix(). 2012-09-14 11:51:58 +02:00
Rico Schüller 26914eb337 d3dx9: Use set_number instead of get_bool/int/float. 2012-09-14 11:51:55 +02:00
Rico Schüller 823d1fbc38 d3dx9: Move bool cropping into helper function. 2012-09-06 15:45:14 +02:00
Rico Schüller 65c651e376 d3dx9: Move D3DXPARAMETER_TYPE conversion helpers to util. 2012-09-06 15:44:39 +02:00
Rico Schüller 6268414cab d3dx9: Remove ID3DXMatrixStackImpl typedef. 2012-09-04 15:04:40 +02:00
Rico Schüller 27b7fdf663 d3dx9: Use sizeof variable instead of type. 2012-09-04 15:04:34 +02:00
Rico Schüller 7d08ae9b29 d3dx9: Make '\0' the default case in get_constant_by_name(). 2012-09-04 15:04:23 +02:00
Rico Schüller b999ab16b3 d3dx9: Fix ID3DXConstantTable::GetConstantElement() for structs. 2012-09-04 15:04:09 +02:00
Rico Schüller 792cd67bf1 d3dx9: Don't use memcpy in ID3DXConstantTable::GetDesc(). 2012-09-03 15:52:07 +02:00
Rico Schüller 587468dc6d d3dx9: Remove FormatType typedef. 2012-09-03 15:52:01 +02:00
Rico Schüller 8da8811615 d3dx9: Remove PixelFormatDesc typedef. 2012-09-03 15:51:57 +02:00
Rico Schüller bfec155345 d3dx9: Improve traces in set_number(). 2012-08-29 11:43:39 +02:00
Rico Schüller 396af0dac3 d3dx9: Optimize set_matrix(). 2012-08-29 11:43:20 +02:00
Rico Schüller 77632f0880 d3dx9: Avoid desc copy in ID3DXConstantTable::GetSamplerIndex(). 2012-08-28 20:24:35 +02:00
Rico Schüller edb802a847 d3dx9: Remove min() in set_matrix_array(), uses always the desc value. 2012-08-28 20:24:34 +02:00
Rico Schüller b5b0520723 d3dx9: Handle D3DXPC_VECTOR in set_matrix_array(). 2012-08-28 20:24:34 +02:00
Rico Schüller a4dde8151b d3dx9: Improve set_matrix_array(). 2012-08-28 20:24:33 +02:00
Rico Schüller 97ef9f9322 d3dx9: Add some traces to D3DXLoadSurfaceFromMemory(). 2012-08-28 20:24:18 +02:00
Jacek Caban 434b696c46 Fixed remaining wrong iface call helpers. 2012-08-28 14:41:12 +02:00
Rico Schüller 42d28e0d34 d3dx9/tests: Fix typo. 2012-08-27 13:42:31 +02:00
Rico Schüller 8c8b4c356c d3dx9: Remove "too many constants" fixme. 2012-08-27 13:42:31 +02:00
Rico Schüller 3dc48141d1 d3dx9: Add debug helper function for RegisterSet. 2012-08-27 13:42:30 +02:00
Rico Schüller 24ab70906b d3dx9: Use debug_d3dxparameter_class/type in traces. 2012-08-27 13:42:30 +02:00
Rico Schüller 68508ed581 d3dx9/tests: Add tests for ID3DXConstantTable::GetConstant/ByName/Element(). 2012-08-27 13:42:29 +02:00
Rico Schüller fdbcbb0c91 d3dx9/tests: Add tests for ID3DXConstantTable::GetConstantDesc(). 2012-08-27 13:42:20 +02:00
Rico Schüller 053e5b59ec d3dx9: Fix RegisterCount calculation. 2012-08-27 11:33:11 +02:00
Rico Schüller 4d59b503de d3dx9: Implement ID3DXConstantTable::GetConstantElement(). 2012-08-27 11:32:52 +02:00
Rico Schüller fa7422bc4e d3dx9: Improve ID3DXConstantTable::GetConstantDesc(). 2012-08-27 11:32:47 +02:00
Rico Schüller ea4f402164 d3dx9: Improve ID3DXConstantTable::GetConstant(). 2012-08-27 11:32:42 +02:00
Rico Schüller 2204986797 d3dx9: Improve ID3DXConstantTable::GetConstantByName(). 2012-08-27 11:32:38 +02:00
Rico Schüller 1278843643 d3dx9: Improve is_valid_constant(). 2012-08-24 11:13:52 +02:00
Rico Schüller b565e8fb4f d3dx9: Parse structs and sub constants in ID3DXConstantTable. 2012-08-24 11:12:43 +02:00
Rico Schüller 8f83681723 d3dx9: Don't use an index as variable handle, it's not useable for subvariables. 2012-08-24 11:12:36 +02:00