您当前的位置:首页 > IT编程 > C++
| C语言 | Java | VB | VC | python | Android | TensorFlow | C++ | oracle | 学术与代码 | cnn卷积神经网络 | gnn | 图像修复 | Keras | 数据集 | Neo4j | 自然语言处理 | 深度学习 | 医学CAD | 医学影像 | 超参数 | pointnet | pytorch | 异常检测 | Transformers | 情感分类 | 知识图谱 |

自学教程:C++ DisposeGWorld函数代码示例

51自学网 2021-06-01 20:28:29
  C++
这篇教程C++ DisposeGWorld函数代码示例写得很实用,希望能帮到您。

本文整理汇总了C++中DisposeGWorld函数的典型用法代码示例。如果您正苦于以下问题:C++ DisposeGWorld函数的具体用法?C++ DisposeGWorld怎么用?C++ DisposeGWorld使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。

在下文中一共展示了DisposeGWorld函数的26个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的C++代码示例。

示例1:

 ~impl() {     if (image_desc) DisposeHandle((Handle)image_desc);     if (handle) DisposeHandle(handle);     if (gworld) DisposeGWorld(gworld);     if (buffer) delete[] buffer;     if (movie) DisposeMovie( movie ); }
开发者ID:Lerbytech,项目名称:gpuakf,代码行数:7,


示例2: DisposeGWorld

void _HYPlatformGraphicPane::_SetPaneSize  (int h,int w, int d){	DisposeGWorld (thePane);	Rect  bRect;	bRect.left = bRect.top = 0;	bRect.right = w;	bRect.bottom = h;	short errCode;	if (d>1)	{	  	errCode = NewGWorld (&thePane,d,&bRect,0,GetMainDevice(),noNewDevice);			if (errCode == -108) // no memory			errCode = NewGWorld (&thePane,d,&bRect,0,GetMainDevice(),noNewDevice|useTempMem);	}	else	{	  	errCode = NewGWorld (&thePane,d,&bRect,0,nil,0);			if (errCode == -108) // no memory			errCode = NewGWorld (&thePane,d,&bRect,0,nil,useTempMem);	}	if (errCode)	{		_String errMsg ("MacOS Error ");		errMsg = errMsg & (long)errCode &" while trying to allocate memory for GraphicPane";		FlagError (errMsg);	}}
开发者ID:mdsmith,项目名称:OCLHYPHY,代码行数:30,


示例3: gst_osx_video_src_stop

static gbooleangst_osx_video_src_stop (GstBaseSrc * src){  GstOSXVideoSrc *self;  ComponentResult err;  self = GST_OSX_VIDEO_SRC (src);  GST_DEBUG_OBJECT (src, "stopping");  self->video_chan = NULL;  err = CloseComponent (self->seq_grab);  if (err != noErr)    GST_WARNING_OBJECT (self, "CloseComponent returned %d", (int) err);  self->seq_grab = NULL;  DisposeGWorld (self->world);  self->world = NULL;  if (self->buffer != NULL) {    gst_buffer_unref (self->buffer);    self->buffer = NULL;  }  return TRUE;}
开发者ID:ChinnaSuhas,项目名称:ossbuild,代码行数:27,


示例4: LoadBlastText

OSErr LoadBlastText(BTIPtr theInfo,short theFile,short theResId){	GWorldPtr		theWorld;	OSErr			theErr;	BTEHandle		theBits;		theInfo->lCoords=0L;	theInfo->textRec.world=0L;		theBits=(BTEHandle)BetterGetResource(theFile,kBlastTextExtrasResType,theResId);	if (!theBits)		return BetterGetResErr();		theInfo->spaceWidth=(**theBits).spaceWidth;	theInfo->remapMe=(**theBits).remapCol;	theInfo->transp=(**theBits).transpCol;		BetterDisposeHandle((Handle)theBits);		if (theErr=NewGWorldWithPic(&theWorld,theResId,8))		return theErr;	MakeBCRecFromGWorld(theWorld,&theInfo->textRec);		theInfo->lCoords=(Rect**)BetterGetResource(theFile,kLetterCoordResType,theResId);	if (!theInfo->lCoords)	{		DisposeGWorld(theWorld);		return BetterGetResErr();	}		HLock((Handle)theInfo->lCoords);		return noErr;}
开发者ID:MaddTheSane,项目名称:tntbasic,代码行数:34,


示例5: get_scrap_helper_dib

PUBLIC intget_scrap_helper_dib (void *vh, void *lp){  SDL_Surface *surfp;  GWorldPtr gp;  PicHandle pich;  Handle h;  int retval;  int len;  surfp = surface_from_dib (lp);  gp = gworld_from_surface (surfp);  SDL_FreeSurface (surfp);  pich = pict_from_gworld (gp, &len);  DisposeGWorld (gp);  h = (Handle) vh;  len = GetHandleSize ((Handle) pich);  ReallocHandle (h, len);  if (MemErr != noErr)    retval = -1;  else    {      memcpy (STARH (h), STARH (pich), len);      retval = len;    }  DisposHandle ((Handle) pich);  return retval;}
开发者ID:LarBob,项目名称:executor,代码行数:28,


示例6: QutTexture_CreateCompressedTextureObjectFromFile

//=============================================================================//		QutTexture_CreateCompressedTextureObjectFromFile :	Create a QD3D //															compressed texture.//-----------------------------------------------------------------------------TQ3TextureObject		QutTexture_CreateCompressedTextureObjectFromFile(									const FSSpec *	theFSSpec,									TQ3PixelType	pixelType,									TQ3Boolean		wantMipMaps){	TQ3TextureObject	theTexture	= NULL;	GWorldPtr			theGWorld	= NULL;	PixMapHandle		thePixmap	= NULL;	// Load the image, then create a texture from it	theGWorld = QutTexture_CreateGWorldFromFile(theFSSpec, pixelType);	if (theGWorld != NULL)	{		thePixmap	= GetGWorldPixMap(theGWorld);				if( thePixmap != NULL)		{			theTexture = QutTexture_CreateCompressedTextureObjectFromPixmap(thePixmap, pixelType, wantMipMaps);			DisposeGWorld(theGWorld);		}	}		return(theTexture);}
开发者ID:refnum,项目名称:quesa,代码行数:31,


示例7: createOffscreen

void createOffscreen(int pictItem){	PicHandle	pict;	Rect		rect;	CGrafPtr	currentPort;	GDHandle	currentDevice;		if (gGWorld != nil)		DisposeGWorld( gGWorld );		pict = (PicHandle)GetResource( 'PICT', pictItem + 127 );		rect = (**pict).picFrame;		GetGWorld( &currentPort, &currentDevice );	NewGWorld( &gGWorld, 32, &rect, nil, nil, 0 );			LockPixels( GetPortPixMap(gGWorld));	SetGWorld( gGWorld, nil );	DrawPicture( pict, &rect );		SetGWorld( currentPort, currentDevice );		ReleaseResource( (Handle)pict );}
开发者ID:fruitsamples,项目名称:QuickDraw_FX,代码行数:26,


示例8: StopMovie

////////////////////////////////////////////////////////////////////////////////// privatebool LLMediaImplQuickTime::unload(){	if ( mMovieHandle )	{		StopMovie( mMovieHandle );		if ( mMovieController )		{			MCMovieChanged( mMovieController, mMovieHandle );		};	};	if ( mMovieController )	{		MCSetActionFilterWithRefCon( mMovieController, NULL, (long)this );		DisposeMovieController( mMovieController );		mMovieController = NULL;	};	if ( mMovieHandle )	{		SetMovieDrawingCompleteProc( mMovieHandle, movieDrawingCallWhenChanged, nil, ( long )this );		DisposeMovie ( mMovieHandle );		mMovieHandle = NULL;	};	if ( mGWorldHandle )	{		DisposeGWorld( mGWorldHandle );		mGWorldHandle = NULL;	};	return true;}
开发者ID:AlexRa,项目名称:Kirstens-clone,代码行数:35,


示例9: put_scrap_helper_dib

PUBLIC voidput_scrap_helper_dib (void *lp){  PicHandle pich;  pich = pict_from_lp (lp);  if (pich)    {      GWorldPtr gp;      gp = gworld_from_pict (pich);      if (gp)	{	  SDL_Surface *surfp;	  surfp = surface_from_gworld (gp);	  if (surfp)	    {	      write_surfp_to_clipboard (surfp);	      SDL_FreeSurface (surfp);	    }	  DisposeGWorld (gp);	}      DisposHandle ((Handle) pich);    }}
开发者ID:LarBob,项目名称:executor,代码行数:26,


示例10: MyDisposeEverything

void MyDisposeEverything (void){	short				nIndex;	// dispose of each sprite
C++ DisposeHandle函数代码示例
C++ DisplayWidthMM函数代码示例
万事OK自学网:51自学网_软件自学网_CAD自学网自学excel、自学PS、自学CAD、自学C语言、自学css3实例,是一个通过网络自主学习工作技能的自学平台,网友喜欢的软件自学网站。