Lines Matching refs:This

9  * This library is free software; you can redistribute it and/or
14 * This library is distributed in the hope that it will be useful,
37 #define GLINFO_LOCATION This->resource.device->adapter->gl_info
41 IWineD3DVolumeImpl *This = (IWineD3DVolumeImpl *)iface;
42 const struct wined3d_gl_info *gl_info = &This->resource.device->adapter->gl_info;
51 * from sampler() in state.c. This means we can't touch anything other than
63 active_sampler = This->resource.device->rev_tex_unit_map[active_texture - GL_TEXTURE0_ARB];
70 IWineD3DDeviceImpl_MarkStateDirty(This->resource.device, STATE_SAMPLER(active_sampler));
83 IWineD3DVolumeImpl *This = (IWineD3DVolumeImpl *)iface;
85 This->dirty = TRUE;
88 This->lockedBox.Left = min(This->lockedBox.Left, dirty_box->Left);
89 This->lockedBox.Top = min(This->lockedBox.Top, dirty_box->Top);
90 This->lockedBox.Front = min(This->lockedBox.Front, dirty_box->Front);
91 This->lockedBox.Right = max(This->lockedBox.Right, dirty_box->Right);
92 This->lockedBox.Bottom = max(This->lockedBox.Bottom, dirty_box->Bottom);
93 This->lockedBox.Back = max(This->lockedBox.Back, dirty_box->Back);
97 This->lockedBox.Left = 0;
98 This->lockedBox.Top = 0;
99 This->lockedBox.Front = 0;
100 This->lockedBox.Right = This->currentDesc.Width;
101 This->lockedBox.Bottom = This->currentDesc.Height;
102 This->lockedBox.Back = This->currentDesc.Depth;
130 IWineD3DVolumeImpl *This = (IWineD3DVolumeImpl *)iface;
131 TRACE("(%p) : AddRef increasing from %d\n", This, This->resource.ref);
132 return InterlockedIncrement(&This->resource.ref);
136 IWineD3DVolumeImpl *This = (IWineD3DVolumeImpl *)iface;
138 TRACE("(%p) : Releasing from %d\n", This, This->resource.ref);
139 ref = InterlockedDecrement(&This->resource.ref);
142 This->resource.parent_ops->wined3d_object_destroyed(This->resource.parent);
143 HeapFree(GetProcessHeap(), 0, This);
180 /* The whole content is shadowed on This->resource.allocatedMemory, and the
194 IWineD3DVolumeImpl *This = (IWineD3DVolumeImpl *)iface;
196 TRACE("(This %p, riid %s, ppContainer %p)\n", This, debugstr_guid(riid), ppContainer);
204 if (!This->container) {
210 return IUnknown_QueryInterface(This->container, riid, ppContainer);
214 IWineD3DVolumeImpl *This = (IWineD3DVolumeImpl *)iface;
215 TRACE("(%p) : copying into %p\n", This, pDesc);
217 pDesc->Format = This->resource.format_desc->format;
218 pDesc->Type = This->resource.resourceType;
219 pDesc->Usage = This->resource.usage;
220 pDesc->Pool = This->resource.pool;
221 pDesc->Size = This->resource.size; /* dx8 only */
222 pDesc->Width = This->currentDesc.Width;
223 pDesc->Height = This->currentDesc.Height;
224 pDesc->Depth = This->currentDesc.Depth;
230 IWineD3DVolumeImpl *This = (IWineD3DVolumeImpl *)iface;
231 FIXME("(%p) : pBox=%p stub\n", This, pBox);
233 if(!This->resource.allocatedMemory) {
234 This->resource.allocatedMemory = HeapAlloc(GetProcessHeap(), HEAP_ZERO_MEMORY, This->resource.size);
238 TRACE("(%p) : box=%p, output pbox=%p, allMem=%p\n", This, pBox, pLockedVolume, This->resource.allocatedMemory);
240 pLockedVolume->RowPitch = This->resource.format_desc->byte_count * This->currentDesc.Width; /* Bytes / row */
241 pLockedVolume->SlicePitch = This->resource.format_desc->byte_count
242 * This->currentDesc.Width * This->currentDesc.Height; /* Bytes / slice */
245 pLockedVolume->pBits = This->resource.allocatedMemory;
246 This->lockedBox.Left = 0;
247 This->lockedBox.Top = 0;
248 This->lockedBox.Front = 0;
249 This->lockedBox.Right = This->currentDesc.Width;
250 This->lockedBox.Bottom = This->currentDesc.Height;
251 This->lockedBox.Back = This->currentDesc.Depth;
255 || pBox->Right > This->currentDesc.Width
257 || pBox->Bottom > This->currentDesc.Height
259 || pBox->Back > This->currentDesc.Depth
267 pLockedVolume->pBits = This->resource.allocatedMemory
270 + (pBox->Left * This->resource.format_desc->byte_count);
271 This->lockedBox.Left = pBox->Left;
272 This->lockedBox.Top = pBox->Top;
273 This->lockedBox.Front = pBox->Front;
274 This->lockedBox.Right = pBox->Right;
275 This->lockedBox.Bottom = pBox->Bottom;
276 This->lockedBox.Back = pBox->Back;
286 volume_add_dirty_box(iface, &This->lockedBox);
289 if (NULL != This->container) {
291 IWineD3DVolumeTexture *cont = (IWineD3DVolumeTexture*) This->container;
304 This->locked = TRUE;
310 IWineD3DVolumeImpl *This = (IWineD3DVolumeImpl *)iface;
311 if (!This->locked)
316 TRACE("(%p) : unlocking volume\n", This);
317 This->locked = FALSE;
318 memset(&This->lockedBox, 0, sizeof(RECT));
325 IWineD3DVolumeImpl *This = (IWineD3DVolumeImpl *)iface;
327 TRACE("This %p, container %p\n", This, container);
331 TRACE("Setting container to %p from %p\n", container, This->container);
332 This->container = container;
339 IWineD3DVolumeImpl *This = (IWineD3DVolumeImpl *)iface;
340 const struct wined3d_format_desc *glDesc = This->resource.format_desc;
342 TRACE("(%p) : level %u, format %s (0x%08x)\n", This, gl_level, debug_d3dformat(glDesc->format), glDesc->format);
350 This->currentDesc.Width,
351 This->currentDesc.Height,
352 This->currentDesc.Depth,
356 This->resource.allocatedMemory);
362 This->currentDesc.Width,
363 This->currentDesc.Height,
364 This->currentDesc.Depth,
368 This->resource.allocatedMemory));
372 /* When adding code releasing This->resource.allocatedMemory to save data keep in mind that
374 * Thus do not release This->resource.allocatedMemory if GL_APPLE_client_storage is supported.