This shows you the differences between two versions of the page.
— |
direct3d [2022/04/16 12:22] (current) |
||
---|---|---|---|
Line 1: | Line 1: | ||
+ | @related : [[DirectX]] [[OpenGL]] [[ATI]] [[nvidia]] [[gl]] | ||
+ | |||
+ | |||
+ | ==== [[Action]] ==== | ||
+ | |||
+ | * http://www.transgaming.com/gavstates.php | ||
+ | * http://www.opengl.org/discussion_boards/ubb/ultimatebb.php?ubb=get_topic;f=12;t=000001;p=1 | ||
+ | * http://www.opengl.org/discussion_boards/ubb/ultimatebb.php?ubb=get_topic;f=12;t=000001;p=1 | ||
+ | * http://translate.google.com/translate?hl=en&sl=nl&u=http://tweakers.net/nieuws/69811/directx-11-ondersteuning-voor-linux-maakt-grote-sprong-voorwaarts.html&ei=hNGZTKXRBojo4AbRqOBy&sa=X&oi=translate&ct=result&resnum=1&ved=0CBcQ7gEwAA&prev=/search?q=http://tweakers.net/nieuws/69811/directx-11-ondersteuning-voor-linux-maakt-grote-sprong-voorwaarts.html&hl=en | ||
+ | |||
+ | |||
+ | ==== QT ==== | ||
+ | |||
+ | QT & Direct[[3D]] ( [[DirectX]] ) | ||
+ | http://lists.trolltech.com/qt-interest/2003-03/thread01272-0.html | ||
+ | |||
+ | <code> | ||
+ | class CDirectXWidget : public QWidget | ||
+ | { | ||
+ | Q_OBJECT | ||
+ | |||
+ | public: | ||
+ | CDirectXWidget(QWidget* pParent, QSize size); | ||
+ | virtual ~CDirectXWidget(); | ||
+ | |||
+ | protected: | ||
+ | IDirect3DDevice8* m_pD3DDevice; | ||
+ | }; | ||
+ | |||
+ | in the ctor you've to do somelike that: | ||
+ | |||
+ | { | ||
+ | IDirect3D8* pD3D = Direct3DCreate8(D3D_SDK_VERSION); | ||
+ | |||
+ | D3DDISPLAYMODE d3ddm; | ||
+ | pD3D->GetAdapterDisplayMode(D3DADAPTER_DEFAULT, &d3ddm) | ||
+ | |||
+ | D3DPRESENT_PARAMETERS d3dpp; | ||
+ | ZeroMemory(&d3dpp, sizeof(d3dpp)); | ||
+ | d3dpp.BackBufferWidth = size.width(); | ||
+ | d3dpp.BackBufferHeight = size.height(); | ||
+ | d3dpp.BackBufferFormat = d3ddm.Format; | ||
+ | d3dpp.SwapEffect = D3DSWAPEFFECT_DISCARD; | ||
+ | d3dpp.hDeviceWindow = winId(); | ||
+ | d3dpp.Windowed = TRUE; | ||
+ | d3dpp.Flags = D3DPRESENTFLAG_LOCKABLE_BACKBUFFER; | ||
+ | |||
+ | pD3D->CreateDevice(D3DADAPTER_DEFAULT, D3DDEVTYPE_HAL, | ||
+ | this->topLevelWidget()->winId(), D3DCREATE_SOFTWARE_VERTEXPROCESSING, | ||
+ | &d3dpp, &m_pD3DDevice); | ||
+ | } | ||
+ | </code> | ||
+ | |||
+ | http://prog.qt.free.fr/docs.php?lng=fr&pg=624 | ||
+ | |||
+ | |||
+ | ==== MISC ==== | ||
+ | |||
+ | [[OpenSource]] : http://source.winehq.org/source/include/wine/wined3d_interface.h | ||
+ | |||
+ | {{http://img.funny.sk/pix/2207.jpg?nocache}} | ||