@@ -199,28 +199,28 @@ <h1 class="title">Direct3D integration</h1>
199199< h1 id ="al_get_d3d_device "> al_get_d3d_device</ h1 >
200200< div class ="sourceCode " id ="cb2 "> < pre class ="sourceCode c "> < code class ="sourceCode c "> < span id ="cb2-1 "> < a href ="#cb2-1 " aria-hidden ="true " tabindex ="-1 "> </ a > LPDIRECT3DDEVICE9 al_get_d3d_device< span class ="op "> (</ span > ALLEGRO_DISPLAY < span class ="op "> *</ span > display< span class ="op "> )</ span > </ span > </ code > </ pre > </ div >
201201< p > < a
202- href ="https://github.com/liballeg/allegro5/blob/4a806797af6cabc7fb89d41be87d5bcd00769dd9 /src/win/d3d_disp.cpp#L2655 "> Source
202+ href ="https://github.com/liballeg/allegro5/blob/b39d03b29c64ecfc6ce0c01278e9e776392201fc /src/win/d3d_disp.cpp#L2651 "> Source
203203Code</ a > </ p >
204204< p > Returns the Direct3D device of the display. The return value is
205205undefined if the display was not created with the Direct3D flag.</ p >
206206< p > < em > Returns:</ em > A pointer to the Direct3D device.</ p >
207207< p > Examples:</ p >
208208< ul >
209209< li > < a
210- href ="https://github.com/liballeg/allegro5/blob/4a806797af6cabc7fb89d41be87d5bcd00769dd9 /examples/ex_d3d.cpp#L44 "> ex_d3d.cpp</ a > </ li >
210+ href ="https://github.com/liballeg/allegro5/blob/b39d03b29c64ecfc6ce0c01278e9e776392201fc /examples/ex_d3d.cpp#L44 "> ex_d3d.cpp</ a > </ li >
211211</ ul >
212212< h1 id ="al_get_d3d_system_texture "> al_get_d3d_system_texture</ h1 >
213213< div class ="sourceCode " id ="cb3 "> < pre class ="sourceCode c "> < code class ="sourceCode c "> < span id ="cb3-1 "> < a href ="#cb3-1 " aria-hidden ="true " tabindex ="-1 "> </ a > LPDIRECT3DTEXTURE9 al_get_d3d_system_texture< span class ="op "> (</ span > ALLEGRO_BITMAP < span class ="op "> *</ span > bitmap< span class ="op "> )</ span > </ span > </ code > </ pre > </ div >
214214< p > < a
215- href ="https://github.com/liballeg/allegro5/blob/4a806797af6cabc7fb89d41be87d5bcd00769dd9 /src/win/d3d_disp.cpp#L2663 "> Source
215+ href ="https://github.com/liballeg/allegro5/blob/b39d03b29c64ecfc6ce0c01278e9e776392201fc /src/win/d3d_disp.cpp#L2659 "> Source
216216Code</ a > </ p >
217217< p > Returns the system texture (stored with the D3DPOOL_SYSTEMMEM flags).
218218This texture is used for the render-to-texture feature set.</ p >
219219< p > < em > Returns:</ em > A pointer to the Direct3D system texture.</ p >
220220< h1 id ="al_get_d3d_video_texture "> al_get_d3d_video_texture</ h1 >
221221< div class ="sourceCode " id ="cb4 "> < pre class ="sourceCode c "> < code class ="sourceCode c "> < span id ="cb4-1 "> < a href ="#cb4-1 " aria-hidden ="true " tabindex ="-1 "> </ a > LPDIRECT3DTEXTURE9 al_get_d3d_video_texture< span class ="op "> (</ span > ALLEGRO_BITMAP < span class ="op "> *</ span > bitmap< span class ="op "> )</ span > </ span > </ code > </ pre > </ div >
222222< p > < a
223- href ="https://github.com/liballeg/allegro5/blob/4a806797af6cabc7fb89d41be87d5bcd00769dd9 /src/win/d3d_disp.cpp#L2671 "> Source
223+ href ="https://github.com/liballeg/allegro5/blob/b39d03b29c64ecfc6ce0c01278e9e776392201fc /src/win/d3d_disp.cpp#L2667 "> Source
224224Code</ a > </ p >
225225< p > Returns the video texture (stored with the D3DPOOL_DEFAULT or
226226D3DPOOL_MANAGED flags depending on whether render-to-texture is enabled
@@ -230,7 +230,7 @@ <h1 id="al_get_d3d_video_texture">al_get_d3d_video_texture</h1>
230230id ="al_have_d3d_non_pow2_texture_support "> al_have_d3d_non_pow2_texture_support</ h1 >
231231< div class ="sourceCode " id ="cb5 "> < pre class ="sourceCode c "> < code class ="sourceCode c "> < span id ="cb5-1 "> < a href ="#cb5-1 " aria-hidden ="true " tabindex ="-1 "> </ a > < span class ="dt "> bool</ span > al_have_d3d_non_pow2_texture_support< span class ="op "> (</ span > < span class ="dt "> void</ span > < span class ="op "> )</ span > </ span > </ code > </ pre > </ div >
232232< p > < a
233- href ="https://github.com/liballeg/allegro5/blob/4a806797af6cabc7fb89d41be87d5bcd00769dd9 /src/win/d3d_disp.cpp#L287 "> Source
233+ href ="https://github.com/liballeg/allegro5/blob/b39d03b29c64ecfc6ce0c01278e9e776392201fc /src/win/d3d_disp.cpp#L288 "> Source
234234Code</ a > </ p >
235235< p > Returns whether the Direct3D device supports textures whose
236236dimensions are not powers of two.</ p >
@@ -240,7 +240,7 @@ <h1 id="al_get_d3d_video_texture">al_get_d3d_video_texture</h1>
240240id ="al_have_d3d_non_square_texture_support "> al_have_d3d_non_square_texture_support</ h1 >
241241< div class ="sourceCode " id ="cb6 "> < pre class ="sourceCode c "> < code class ="sourceCode c "> < span id ="cb6-1 "> < a href ="#cb6-1 " aria-hidden ="true " tabindex ="-1 "> </ a > < span class ="dt "> bool</ span > al_have_d3d_non_square_texture_support< span class ="op "> (</ span > < span class ="dt "> void</ span > < span class ="op "> )</ span > </ span > </ code > </ pre > </ div >
242242< p > < a
243- href ="https://github.com/liballeg/allegro5/blob/4a806797af6cabc7fb89d41be87d5bcd00769dd9 /src/win/d3d_disp.cpp#L329 "> Source
243+ href ="https://github.com/liballeg/allegro5/blob/b39d03b29c64ecfc6ce0c01278e9e776392201fc /src/win/d3d_disp.cpp#L330 "> Source
244244Code</ a > </ p >
245245< p > Returns whether the Direct3D device supports textures that are not
246246square.</ p >
@@ -249,7 +249,7 @@ <h1 id="al_get_d3d_video_texture">al_get_d3d_video_texture</h1>
249249< h1 id ="al_get_d3d_texture_size "> al_get_d3d_texture_size</ h1 >
250250< div class ="sourceCode " id ="cb7 "> < pre class ="sourceCode c "> < code class ="sourceCode c "> < span id ="cb7-1 "> < a href ="#cb7-1 " aria-hidden ="true " tabindex ="-1 "> </ a > < span class ="dt "> bool</ span > al_get_d3d_texture_size< span class ="op "> (</ span > ALLEGRO_BITMAP < span class ="op "> *</ span > bitmap< span class ="op "> ,</ span > < span class ="dt "> int</ span > < span class ="op "> *</ span > width< span class ="op "> ,</ span > < span class ="dt "> int</ span > < span class ="op "> *</ span > height< span class ="op "> )</ span > </ span > </ code > </ pre > </ div >
251251< p > < a
252- href ="https://github.com/liballeg/allegro5/blob/4a806797af6cabc7fb89d41be87d5bcd00769dd9 /src/win/d3d_bmp.cpp#L105 "> Source
252+ href ="https://github.com/liballeg/allegro5/blob/b39d03b29c64ecfc6ce0c01278e9e776392201fc /src/win/d3d_bmp.cpp#L105 "> Source
253253Code</ a > </ p >
254254< p > Retrieves the size of the Direct3D texture used for the bitmap.</ p >
255255< p > Returns true on success, false on failure. Zero width and height are
@@ -260,7 +260,7 @@ <h1 id="al_get_d3d_texture_size">al_get_d3d_texture_size</h1>
260260< h1 id ="al_get_d3d_texture_position "> al_get_d3d_texture_position</ h1 >
261261< div class ="sourceCode " id ="cb8 "> < pre class ="sourceCode c "> < code class ="sourceCode c "> < span id ="cb8-1 "> < a href ="#cb8-1 " aria-hidden ="true " tabindex ="-1 "> </ a > < span class ="dt "> void</ span > al_get_d3d_texture_position< span class ="op "> (</ span > ALLEGRO_BITMAP < span class ="op "> *</ span > bitmap< span class ="op "> ,</ span > < span class ="dt "> int</ span > < span class ="op "> *</ span > u< span class ="op "> ,</ span > < span class ="dt "> int</ span > < span class ="op "> *</ span > v< span class ="op "> )</ span > </ span > </ code > </ pre > </ div >
262262< p > < a
263- href ="https://github.com/liballeg/allegro5/blob/4a806797af6cabc7fb89d41be87d5bcd00769dd9 /src/win/d3d_disp.cpp#L2679 "> Source
263+ href ="https://github.com/liballeg/allegro5/blob/b39d03b29c64ecfc6ce0c01278e9e776392201fc /src/win/d3d_disp.cpp#L2675 "> Source
264264Code</ a > </ p >
265265< p > Returns the u/v coordinates for the top/left corner of the bitmap
266266within the used texture, in pixels.</ p >
@@ -275,7 +275,7 @@ <h1 id="al_get_d3d_texture_position">al_get_d3d_texture_position</h1>
275275< h1 id ="al_is_d3d_device_lost "> al_is_d3d_device_lost</ h1 >
276276< div class ="sourceCode " id ="cb9 "> < pre class ="sourceCode c "> < code class ="sourceCode c "> < span id ="cb9-1 "> < a href ="#cb9-1 " aria-hidden ="true " tabindex ="-1 "> </ a > < span class ="dt "> bool</ span > al_is_d3d_device_lost< span class ="op "> (</ span > ALLEGRO_DISPLAY < span class ="op "> *</ span > display< span class ="op "> )</ span > </ span > </ code > </ pre > </ div >
277277< p > < a
278- href ="https://github.com/liballeg/allegro5/blob/4a806797af6cabc7fb89d41be87d5bcd00769dd9 /src/win/d3d_disp.cpp#L2691 "> Source
278+ href ="https://github.com/liballeg/allegro5/blob/b39d03b29c64ecfc6ce0c01278e9e776392201fc /src/win/d3d_disp.cpp#L2687 "> Source
279279Code</ a > </ p >
280280< p > Returns a boolean indicating whether or not the Direct3D device
281281belonging to the given display is in a lost state.</ p >
@@ -289,7 +289,7 @@ <h1 id="al_is_d3d_device_lost">al_is_d3d_device_lost</h1>
289289< div class ="sourceCode " id ="cb10 "> < pre class ="sourceCode c "> < code class ="sourceCode c "> < span id ="cb10-1 "> < a href ="#cb10-1 " aria-hidden ="true " tabindex ="-1 "> </ a > < span class ="dt "> void</ span > al_set_d3d_device_release_callback< span class ="op "> (</ span > </ span >
290290< span id ="cb10-2 "> < a href ="#cb10-2 " aria-hidden ="true " tabindex ="-1 "> </ a > < span class ="dt "> void</ span > < span class ="op "> (*</ span > callback< span class ="op "> )(</ span > ALLEGRO_DISPLAY < span class ="op "> *</ span > display< span class ="op "> ))</ span > </ span > </ code > </ pre > </ div >
291291< p > < a
292- href ="https://github.com/liballeg/allegro5/blob/4a806797af6cabc7fb89d41be87d5bcd00769dd9 /src/win/d3d_disp.cpp#L265 "> Source
292+ href ="https://github.com/liballeg/allegro5/blob/b39d03b29c64ecfc6ce0c01278e9e776392201fc /src/win/d3d_disp.cpp#L266 "> Source
293293Code</ a > </ p >
294294< p > The callback will be called whenever a D3D device is reset (minimize,
295295toggle fullscreen window, etc). In the callback you should release any
@@ -302,7 +302,7 @@ <h1 id="al_is_d3d_device_lost">al_is_d3d_device_lost</h1>
302302< div class ="sourceCode " id ="cb11 "> < pre class ="sourceCode c "> < code class ="sourceCode c "> < span id ="cb11-1 "> < a href ="#cb11-1 " aria-hidden ="true " tabindex ="-1 "> </ a > < span class ="dt "> void</ span > al_set_d3d_device_restore_callback< span class ="op "> (</ span > </ span >
303303< span id ="cb11-2 "> < a href ="#cb11-2 " aria-hidden ="true " tabindex ="-1 "> </ a > < span class ="dt "> void</ span > < span class ="op "> (*</ span > callback< span class ="op "> )(</ span > ALLEGRO_DISPLAY < span class ="op "> *</ span > display< span class ="op "> ))</ span > </ span > </ code > </ pre > </ div >
304304< p > < a
305- href ="https://github.com/liballeg/allegro5/blob/4a806797af6cabc7fb89d41be87d5bcd00769dd9 /src/win/d3d_disp.cpp#L273 "> Source
305+ href ="https://github.com/liballeg/allegro5/blob/b39d03b29c64ecfc6ce0c01278e9e776392201fc /src/win/d3d_disp.cpp#L274 "> Source
306306Code</ a > </ p >
307307< p > The callback will be called whenever a D3D device that has been reset
308308is restored. In the callback you should restore any d3d resources you
@@ -312,7 +312,7 @@ <h1 id="al_is_d3d_device_lost">al_is_d3d_device_lost</h1>
312312< p > Since: 5.1.0</ p >
313313< p class ="timestamp ">
314314Allegro version 5.2.12 (GIT)
315- - Last updated: 2025-12-31 09:05:02 UTC
315+ - Last updated: 2026-01-04 22:00:12 UTC
316316</ p >
317317</ div >
318318</ body >
0 commit comments