/reactos/dll/directx/wine/d3drm/ |
H A D | viewport.c | 68 if (viewport->d3d_viewport) in d3drm_viewport_destroy() 76 heap_free(viewport); in d3drm_viewport_destroy() 388 if (viewport->camera) in d3drm_viewport2_Init() 704 viewport->clip.top = top; in d3drm_viewport2_SetPlane() 729 if (!viewport->camera) in d3drm_viewport2_GetCamera() 765 if (!viewport->device) in d3drm_viewport2_GetDevice() 783 if (!viewport->device) in d3drm_viewport1_GetDevice() 917 return (viewport->clip.right - viewport->clip.left in d3drm_viewport2_GetField() 918 + viewport->clip.top - viewport->clip.bottom) / 4.0f; in d3drm_viewport2_GetField() 997 if (!viewport) in d3drm_viewport2_GetDirect3DViewport() [all …]
|
H A D | d3drm.c | 73 struct d3drm_viewport *viewport; in d3drm_create_viewport_object() local 79 *object = &viewport->IDirect3DRMViewport_iface; in d3drm_create_viewport_object() 571 if (!viewport) in d3drm1_CreateViewport() 573 *viewport = NULL; in d3drm1_CreateViewport() 1095 if (!viewport) in d3drm2_CreateViewport() 1097 *viewport = NULL; in d3drm2_CreateViewport() 1768 if (!viewport) in d3drm3_CreateViewport() 1770 *viewport = NULL; in d3drm3_CreateViewport() 1778 *viewport = &object->IDirect3DRMViewport2_iface; in d3drm3_CreateViewport() 1782 IDirect3DRMViewport2_Release(*viewport); in d3drm3_CreateViewport() [all …]
|
H A D | CMakeLists.txt | 17 viewport.c
|
H A D | d3drm_private.h | 291 HRESULT d3drm_viewport_create(struct d3drm_viewport **viewport, IDirect3DRM *d3drm) DECLSPEC_HIDDEN;
|
/reactos/dll/directx/wine/ddraw/ |
H A D | viewport.c | 224 heap_free(viewport); in d3d_viewport_Release() 556 viewport->background = m; in d3d_viewport_SetBackground() 587 *material = viewport->background ? viewport->background->Handle : 0; in d3d_viewport_GetBackground() 789 if (l->active_viewport != viewport) in d3d_viewport_DeleteLight() 800 --viewport->num_lights; in d3d_viewport_DeleteLight() 1065 if (!viewport->active_device) in d3d_viewport_Clear2() 1074 viewport_activate(viewport, TRUE); in d3d_viewport_Clear2() 1149 viewport->ref = 1; in d3d_viewport_init() 1150 viewport->ddraw = ddraw; in d3d_viewport_init() 1151 viewport->use_vp2 = 0xff; in d3d_viewport_init() [all …]
|
H A D | device.c | 752 IDirect3DViewport3_AddRef(viewport); in d3d_device3_AddViewport() 762 IDirect3DViewport2 *viewport) in d3d_device2_AddViewport() argument 830 IDirect3DViewport3_Release(viewport); in d3d_device3_DeleteViewport() 5322 if (!viewport) in d3d_device7_SetViewport() 5325 vp.x = viewport->dwX; in d3d_device7_SetViewport() 5326 vp.y = viewport->dwY; in d3d_device7_SetViewport() 5327 vp.width = viewport->dwWidth; in d3d_device7_SetViewport() 5328 vp.height = viewport->dwHeight; in d3d_device7_SetViewport() 5329 vp.min_z = viewport->dvMinZ; in d3d_device7_SetViewport() 5330 vp.max_z = viewport->dvMaxZ; in d3d_device7_SetViewport() [all …]
|
H A D | executebuffer.c | 52 struct d3d_device *device, struct d3d_viewport *viewport) in d3d_execute_buffer_execute() argument 61 if (viewport->active_device != device) in d3d_execute_buffer_execute() 64 viewport, viewport->active_device); in d3d_execute_buffer_execute() 69 viewport_activate(viewport, FALSE); in d3d_execute_buffer_execute()
|
H A D | CMakeLists.txt | 23 viewport.c
|
H A D | ddraw_private.h | 513 void viewport_activate(struct d3d_viewport *viewport, BOOL ignore_lights) DECLSPEC_HIDDEN; 514 void d3d_viewport_init(struct d3d_viewport *viewport, struct ddraw *ddraw) DECLSPEC_HIDDEN; 547 struct d3d_device *device, struct d3d_viewport *viewport) DECLSPEC_HIDDEN;
|
H A D | ddraw.c | 4089 static HRESULT WINAPI d3d3_CreateViewport(IDirect3D3 *iface, IDirect3DViewport3 **viewport, in d3d3_CreateViewport() argument 4095 TRACE("iface %p, viewport %p, outer_unknown %p.\n", iface, viewport, outer_unknown); in d3d3_CreateViewport() 4108 *viewport = &object->IDirect3DViewport3_iface; in d3d3_CreateViewport() 4113 static HRESULT WINAPI d3d2_CreateViewport(IDirect3D2 *iface, IDirect3DViewport2 **viewport, IUnknow… in d3d2_CreateViewport() argument 4117 TRACE("iface %p, viewport %p, outer_unknown %p.\n", iface, viewport, outer_unknown); in d3d2_CreateViewport() 4119 return d3d3_CreateViewport(&ddraw->IDirect3D3_iface, (IDirect3DViewport3 **)viewport, in d3d2_CreateViewport() 4123 static HRESULT WINAPI d3d1_CreateViewport(IDirect3D *iface, IDirect3DViewport **viewport, IUnknown … in d3d1_CreateViewport() argument 4127 TRACE("iface %p, viewport %p, outer_unknown %p.\n", iface, viewport, outer_unknown); in d3d1_CreateViewport() 4129 return d3d3_CreateViewport(&ddraw->IDirect3D3_iface, (IDirect3DViewport3 **)viewport, in d3d1_CreateViewport()
|
/reactos/dll/opengl/glu32/src/libutil/ |
H A D | project.c | 259 in[0] = in[0] * viewport[2] + viewport[0]; in gluProject() 260 in[1] = in[1] * viewport[3] + viewport[1]; in gluProject() 288 in[0] = (in[0] - viewport[0]) / viewport[2]; in gluUnProject() 289 in[1] = (in[1] - viewport[1]) / viewport[3]; in gluUnProject() 311 const GLint viewport[4], in gluUnProject4() 329 in[0] = (in[0] - viewport[0]) / viewport[2]; in gluUnProject4() 330 in[1] = (in[1] - viewport[1]) / viewport[3]; in gluUnProject4() 349 GLint viewport[4]) in gluPickMatrix() 356 glTranslatef((viewport[2] - 2 * (x - viewport[0])) / deltax, in gluPickMatrix() 357 (viewport[3] - 2 * (y - viewport[1])) / deltay, 0); in gluPickMatrix() [all …]
|
/reactos/modules/rostests/winetests/opengl32/ |
H A D | opengl.c | 777 ok( viewport[0] == 0 && viewport[1] == 0 && viewport[2] == 4 && viewport[3] == 4, in test_bitmap_rendering() 778 … "wrong viewport %d,%d,%d,%d\n", viewport[0], viewport[1], viewport[2], viewport[3] ); in test_bitmap_rendering() 796 ok( viewport[0] == 0 && viewport[1] == 0 && viewport[2] == 4 && viewport[3] == 4, in test_bitmap_rendering() 797 … "wrong viewport %d,%d,%d,%d\n", viewport[0], viewport[1], viewport[2], viewport[3] ); in test_bitmap_rendering() 805 ok( viewport[0] == 0 && viewport[1] == 0 && viewport[2] == 4 && viewport[3] == 4, in test_bitmap_rendering() 806 … "wrong viewport %d,%d,%d,%d\n", viewport[0], viewport[1], viewport[2], viewport[3] ); in test_bitmap_rendering() 810 ok( viewport[0] == 0 && viewport[1] == 0 && viewport[2] == 12 && viewport[3] == 12, in test_bitmap_rendering() 811 … "wrong viewport %d,%d,%d,%d\n", viewport[0], viewport[1], viewport[2], viewport[3] ); in test_bitmap_rendering() 815 ok( viewport[0] == 0 && viewport[1] == 0 && viewport[2] == 4 && viewport[3] == 4, in test_bitmap_rendering() 816 … "wrong viewport %d,%d,%d,%d\n", viewport[0], viewport[1], viewport[2], viewport[3] ); in test_bitmap_rendering() [all …]
|
/reactos/dll/opengl/glu32/src/libnurbs/interface/ |
H A D | glrenderer.cc | 132 GLint viewport[4]; in loadGLMatrices() local 136 ::glGetIntegerv((GLenum) GL_VIEWPORT, (GLint *) viewport); in loadGLMatrices() 137 loadSamplingMatrix((const GLfloat (*)[4]) vmat, (const GLint *) viewport); in loadGLMatrices() 143 const GLint viewport[4]) in useGLMatrices() 150 loadSamplingMatrix((const GLfloat (*)[4]) vmat, (const GLint *) viewport); in useGLMatrices() 195 const GLint viewport[4]) in loadSamplingMatrix() 199 REAL xsize = 0.5 * (REAL) (viewport[2]); in loadSamplingMatrix() 200 REAL ysize = 0.5 * (REAL) (viewport[3]); in loadSamplingMatrix()
|
H A D | glrenderer.h | 56 const GLint viewport[4] ); 135 const GLint viewport[4] );
|
H A D | glinterface.cc | 237 const GLint viewport[4]) in gluLoadSamplingMatrices() 239 r->useGLMatrices(modelMatrix, projMatrix, viewport); in gluLoadSamplingMatrices()
|
/reactos/dll/directx/wine/d3dx9_36/ |
H A D | render.c | 34 D3DVIEWPORT9 viewport; member 63 IDirect3DDevice9_GetViewport(device, &state->viewport); in device_state_capture() 94 IDirect3DDevice9_SetViewport(device, &state->viewport); in device_state_restore() 226 TRACE("(%p)->(%p, %p)\n", iface, surface, viewport); in D3DXRenderToSurface_BeginScene() 236 if (viewport) in D3DXRenderToSurface_BeginScene() 238 if (viewport->X > render->desc.Width || viewport->Y > render->desc.Height in D3DXRenderToSurface_BeginScene() 239 || viewport->X + viewport->Width > render->desc.Width in D3DXRenderToSurface_BeginScene() 240 || viewport->Y + viewport->Height > render->desc.Height) in D3DXRenderToSurface_BeginScene() 244 && (viewport->X != 0 || viewport->Y != 0 in D3DXRenderToSurface_BeginScene() 245 || viewport->Width != render->desc.Width in D3DXRenderToSurface_BeginScene() [all …]
|
H A D | math.c | 1850 …NT outstride, const D3DXVECTOR3* in, UINT instride, const D3DVIEWPORT9* viewport, const D3DXMATRIX… in D3DXVec3ProjectArray() argument 1855 out, outstride, in, instride, viewport, projection, view, world, elements); in D3DXVec3ProjectArray() 1861 viewport, projection, view, world); in D3DXVec3ProjectArray() 1957 const D3DVIEWPORT9 *viewport, const D3DXMATRIX *projection, const D3DXMATRIX *view, in D3DXVec3Unproject() argument 1963 out, v, viewport, projection, view, world); in D3DXVec3Unproject() 1975 if (viewport) in D3DXVec3Unproject() 1977 out->x = 2.0f * (out->x - viewport->X) / viewport->Width - 1.0f; in D3DXVec3Unproject() 1978 out->y = 1.0f - 2.0f * (out->y - viewport->Y) / viewport->Height; in D3DXVec3Unproject() 1979 out->z = (out->z - viewport->MinZ) / (viewport->MaxZ - viewport->MinZ); in D3DXVec3Unproject() 1990 out, outstride, in, instride, viewport, projection, view, world, elements); in D3DXVec3UnprojectArray() [all …]
|
/reactos/modules/rostests/winetests/d3dx9_36/ |
H A D | core.c | 1281 viewport.X = width / 2; in check_ID3DXRenderToSurface() 1282 viewport.Width = width; in check_ID3DXRenderToSurface() 1286 viewport.X = width; in check_ID3DXRenderToSurface() 1294 viewport.X = 0; in check_ID3DXRenderToSurface() 1329 viewport.X = 0; in check_ID3DXRenderToSurface() 1330 viewport.Y = 0; in check_ID3DXRenderToSurface() 1363 D3DVIEWPORT9 viewport; member 1424 cmp = state1->viewport.X == state2->viewport.X && state1->viewport.Y == state2->viewport.Y in compare_device_state() 1425 …&& state1->viewport.Width == state2->viewport.Width && state1->viewport.Height == state2->viewport… in compare_device_state() 1427 state1->viewport.X, state1->viewport.Y, state1->viewport.Width, state1->viewport.Height, in compare_device_state() [all …]
|
H A D | math.c | 2044 D3DVIEWPORT9 viewport; in D3DXVector3Test() local 2058 viewport.Width = 800; viewport.MinZ = 0.2f; viewport.X = 10; in D3DXVector3Test() 2059 viewport.Height = 680; viewport.MaxZ = 0.9f; viewport.Y = 5; in D3DXVector3Test() 2236 D3DXVec3Project(&gotvec,&u,&viewport,&projection,&mat,NULL); in D3DXVector3Test() 2240 D3DXVec3Project(&gotvec,&u,&viewport,NULL,&mat,&world); in D3DXVector3Test() 2248 D3DXVec3Project(&gotvec,&u,&viewport,NULL,NULL,NULL); in D3DXVector3Test() 2266 D3DXVec3Unproject(&gotvec,&u,&viewport,NULL,&mat,&world); in D3DXVector3Test() 2274 D3DXVec3Unproject(&gotvec,&u,&viewport,NULL,NULL,NULL); in D3DXVector3Test() 3057 D3DVIEWPORT9 viewport; in test_D3DXVec_Array() local 3060 viewport.Width = 800; viewport.MinZ = 0.2f; viewport.X = 10; in test_D3DXVec_Array() [all …]
|
/reactos/modules/rostests/winetests/d3drm/ |
H A D | d3drm.c | 1916 ok(!viewport, "Expected viewport returned == NULL, got %p.\n", viewport); in test_Viewport() 1920 ok(!viewport, "Expected viewport returned == NULL, got %p.\n", viewport); in test_Viewport() 1924 ok(!viewport, "Expected viewport returned == NULL, got %p.\n", viewport); in test_Viewport() 1928 ok(!viewport, "Expected viewport returned == NULL, got %p.\n", viewport); in test_Viewport() 1932 ok(!viewport, "Expected viewport returned == NULL, got %p.\n", viewport); in test_Viewport() 1939 ok(!viewport, "Expected viewport returned == NULL, got %p.\n", viewport); in test_Viewport() 1943 ok(!viewport, "Expected viewport returned == NULL, got %p.\n", viewport); in test_Viewport() 1947 ok(!viewport, "Expected viewport returned == NULL, got %p.\n", viewport); in test_Viewport() 1951 ok(!viewport, "Expected viewport returned == NULL, got %p.\n", viewport); in test_Viewport() 1955 ok(!viewport, "Expected viewport returned == NULL, got %p.\n", viewport); in test_Viewport() [all …]
|
/reactos/dll/directx/wine/wined3d/ |
H A D | device.c | 1935 … viewport->x, viewport->y, viewport->width, viewport->height, viewport->min_z, viewport->max_z); in wined3d_device_set_viewport() 1937 device->update_state->viewport = *viewport; in wined3d_device_set_viewport() 1954 *viewport = device->state.viewport; in wined3d_device_get_viewport() 4495 state->viewport.x = 0; 4496 state->viewport.y = 0; 4497 state->viewport.width = view->width; 4499 state->viewport.min_z = 0.0f; 4500 state->viewport.max_z = 1.0f; 5009 state->viewport.x = 0; 5010 state->viewport.y = 0; [all …]
|
H A D | stateblock.c | 212 states->viewport = 1; in stateblock_savedstates_set_all() 818 if (stateblock->changed.viewport in wined3d_stateblock_capture() 819 … && memcmp(&src_state->viewport, &stateblock->state.viewport, sizeof(stateblock->state.viewport))) in wined3d_stateblock_capture() 823 stateblock->state.viewport = src_state->viewport; in wined3d_stateblock_capture() 1062 if (stateblock->changed.viewport) in wined3d_stateblock_apply() 1063 wined3d_device_set_viewport(device, &stateblock->state.viewport); in wined3d_stateblock_apply()
|
H A D | cs.c | 144 struct wined3d_viewport viewport; member 541 const struct wined3d_viewport *vp = &state->viewport; in wined3d_cs_emit_clear() 965 cs->state.viewport = op->viewport; in wined3d_cs_exec_set_viewport() 969 void wined3d_cs_emit_set_viewport(struct wined3d_cs *cs, const struct wined3d_viewport *viewport) in wined3d_cs_emit_set_viewport() argument 975 op->viewport = *viewport; in wined3d_cs_emit_set_viewport()
|
/reactos/dll/directx/wine/d3d8/ |
H A D | device.c | 1538 vp.x = viewport->X; in d3d8_device_SetViewport() 1539 vp.y = viewport->Y; in d3d8_device_SetViewport() 1540 vp.width = viewport->Width; in d3d8_device_SetViewport() 1541 vp.height = viewport->Height; in d3d8_device_SetViewport() 1542 vp.min_z = viewport->MinZ; in d3d8_device_SetViewport() 1543 vp.max_z = viewport->MaxZ; in d3d8_device_SetViewport() 1563 viewport->X = wined3d_viewport.x; in d3d8_device_GetViewport() 1564 viewport->Y = wined3d_viewport.y; in d3d8_device_GetViewport() 1565 viewport->Width = wined3d_viewport.width; in d3d8_device_GetViewport() 1567 viewport->MinZ = wined3d_viewport.min_z; in d3d8_device_GetViewport() [all …]
|
/reactos/dll/directx/wine/d3d9/ |
H A D | device.c | 2027 vp.x = viewport->X; in d3d9_device_SetViewport() 2028 vp.y = viewport->Y; in d3d9_device_SetViewport() 2029 vp.width = viewport->Width; in d3d9_device_SetViewport() 2030 vp.height = viewport->Height; in d3d9_device_SetViewport() 2031 vp.min_z = viewport->MinZ; in d3d9_device_SetViewport() 2032 vp.max_z = viewport->MaxZ; in d3d9_device_SetViewport() 2052 viewport->X = wined3d_viewport.x; in d3d9_device_GetViewport() 2053 viewport->Y = wined3d_viewport.y; in d3d9_device_GetViewport() 2054 viewport->Width = wined3d_viewport.width; in d3d9_device_GetViewport() 2056 viewport->MinZ = wined3d_viewport.min_z; in d3d9_device_GetViewport() [all …]
|