Home | History | Annotate | Download | only in libGLESv2

Lines Matching full:surface

28   : width(0), height(0), dirty(false), surface(NULL), format(GL_NONE)
34 if (surface) surface->Release();
775 if (img->surface) img->surface->Release();
776 img->surface = newSurface;
787 if (pixels != NULL && img->surface != NULL)
790 img->surface->GetDesc(&description);
793 HRESULT result = img->surface->LockRect(&locked, NULL, 0);
800 img->surface->UnlockRect();
813 if (pixels != NULL && img->surface != NULL)
816 HRESULT result = img->surface->LockRect(&locked, NULL, 0);
823 img->surface->UnlockRect();
840 if (!img->surface)
845 if (pixels != NULL && img->surface != NULL)
848 img->surface->GetDesc(&description);
851 HRESULT result = img->surface->LockRect(&locked, NULL, 0);
858 img->surface->UnlockRect();
881 if (!img->surface)
886 if (pixels != NULL && img->surface != NULL)
895 HRESULT result = img->surface->LockRect(&locked, &updateRegion, 0);
907 img->surface->UnlockRect();
920 IDirect3DSurface9 *surface = NULL;
924 HRESULT result = device->CreateOffscreenPlainSurface(description.Width, description.Height, description.Format, D3DPOOL_SYSTEMMEM, &surface, NULL);
928 ERR("Could not create matching destination surface.");
932 result = device->GetRenderTargetData(renderTarget, surface);
937 surface->Release();
943 result = surface->LockRect(&sourceLock, &sourceRect, 0);
947 ERR("Failed to lock the source surface (rectangle might be invalid).");
948 surface->UnlockRect();
949 surface->Release();
953 if (!image->surface)
958 if (image->surface == NULL)
960 ERR("Failed to create an image surface.");
961 surface->UnlockRect();
962 surface->Release();
968 result = image->surface->LockRect(&destLock, &destRect, 0);
972 ERR("Failed to lock the destination surface (rectangle might be invalid).");
973 surface->UnlockRect();
974 surface->Release();
1080 image->surface->UnlockRect();
1081 surface->UnlockRect();
1082 surface->Release();
1119 // Returns the top-level texture surface as a render target
1238 if (mImageArray[i].surface != NULL)
1242 mImageArray[i].surface->Release();
1243 mImageArray[i].surface = NULL;
1279 ASSERT(mImageArray[level].surface != NULL);
1302 result = getDevice()->UpdateSurface(img->surface, &sourceRect, destLevel, &destPoint);
1545 result = device->UpdateSurface(mImageArray[level].surface, NULL, levelSurface, NULL);
1656 if (mImageArray[i].surface != NULL)
1658 mImageArray[i].surface->Release();
1659 mImageArray[i].surface = NULL;
1699 if (mImageArray[i].surface == NULL)
1704 if (FAILED(D3DXLoadSurfaceFromSurface(mImageArray[i].surface, NULL, NULL, mImageArray[i - 1].surface, NULL, NULL, D3DX_FILTER_BOX, 0)))
1818 ASSERT(mImageArray[face][level].surface != NULL);
1839 HRESULT result = getDevice()->UpdateSurface(img->surface, &sourceRect, destLevel, &destPoint);
1985 HRESULT result = device->UpdateSurface(img->surface, NULL, levelSurface, NULL);
2131 if (mImageArray[f][i].surface != NULL)
2135 mImageArray[f][i].surface->Release();
2136 mImageArray[f][i].surface = NULL;
2234 IDirect3DSurface9 *surface = NULL;
2236 HRESULT hr = mTexture->GetCubeMapSurface(static_cast<D3DCUBEMAP_FACES>(faceIndex), level, &surface);
2238 return (SUCCEEDED(hr)) ? surface : NULL;
2325 if (mImageArray[f][i].surface != NULL)
2327 mImageArray[f][i].surface->Release();
2328 mImageArray[f][i].surface = NULL;
2370 if (mImageArray[f][i].surface == NULL)
2375 if (FAILED(D3DXLoadSurfaceFromSurface(mImageArray[f][i].surface, NULL, NULL, mImageArray[f][i - 1].surface, NULL, NULL, D3DX_FILTER_BOX, 0)))