Ejemplo n.º 1
0
bool CBSurfaceSDL::IsTransparentAt(int X, int Y) {
	int access;
	int width, height;
	SDL_QueryTexture(m_Texture, NULL, &access, &width, &height);
	//if (access != SDL_TEXTUREACCESS_STREAMING) return false;
	if (X < 0 || X >= width || Y < 0 || Y >= height) return true;


	StartPixelOp();
	bool ret = IsTransparentAtLite(X, Y);
	EndPixelOp();

	return ret;
}
CBSurface::~CBSurface()
{
	if(m_PixelOpReady) EndPixelOp();
	if(m_Filename) delete [] m_Filename;
}