当前位置: 首页>>代码示例>>C++>>正文


C++ InitParams函数代码示例

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


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

示例1: DestroyObjs

int CUndoMotion::ClearData()
{
	DestroyObjs();
	InitParams();

	return 0;
}
开发者ID:Ochakko,项目名称:MameRoid3D,代码行数:7,代码来源:UndoMotion.cpp

示例2: main

int main()
{
	InitParams();
	InitRad(&params);
	DoRad();
	CleanUpRad();
}
开发者ID:EduardMe,项目名称:GraphicsGems,代码行数:7,代码来源:room.c

示例3: InitParams

CMultiWave::CMultiWave( int srcflag3d, int srcreverbflag )
{
	InitParams();
	flag3d = srcflag3d;
	flagreverb = srcreverbflag;
	
}
开发者ID:toughie88,项目名称:Easy3D-1,代码行数:7,代码来源:MultiWave.cpp

示例4: InitParams

HRESULT CParamsManager::CopyParamsFromSource( CParamsManager * pSource)

{
    HRESULT hr = S_OK;
    DWORD dwIndex;

    for (dwIndex = 0; dwIndex < m_cTimeFormats; dwIndex++)
    {
        if (pSource->m_guidCurrentTimeFormat == m_pguidTimeFormats[dwIndex])
        {
            break;
        }
    }
    
    
    hr = InitParams(pSource->m_cTimeFormats, pSource->m_pguidTimeFormats, dwIndex, pSource->m_mptdCurrentTimeData, pSource->m_cParams,pSource->m_pParamInfos);
    if (SUCCEEDED(hr))
    {
        for (dwIndex = 0; dwIndex < m_cParams; dwIndex++)
        {
            CCurveItem *pCurve = pSource->m_pCurveLists[dwIndex].GetHead();
            for (;pCurve;pCurve = pCurve->GetNext())
            {
	            CCurveItem *pNew = new CCurveItem;
                if (!pNew) 
                {
                    return E_OUTOFMEMORY;
                }
                pNew->m_Envelope = pCurve->m_Envelope;
                m_pCurveLists[dwIndex].AddTail(pNew);
            }
        }
    }
    return hr;
}
开发者ID:grakidov,项目名称:Render3D,代码行数:35,代码来源:param.cpp

示例5: QObject

cRenderQueue::cRenderQueue(cImage *_image, RenderedImage *widget) : QObject()
{
	image = _image;
	imageWidget = widget;
	queuePar = new cParameterContainer;
	queueParFractal = new cFractalContainer;
	queueAnimFrames = new cAnimationFrames;
	queueKeyframes = new cKeyframes;

	queuePar->SetContainerName("main");
	InitParams(queuePar);
	for(int i=0; i<NUMBER_OF_FRACTALS; i++)
	{
		queueParFractal->at(i).SetContainerName(QString("fractal") + QString::number(i));
		InitFractalParams(&queueParFractal->at(i));
	}

	queueFlightAnimation = new cFlightAnimation(gMainInterface, queueAnimFrames, image, imageWidget, queuePar, queueParFractal, this);
	queueKeyframeAnimation = new cKeyframeAnimation(gMainInterface, queueKeyframes, image, imageWidget, queuePar, queueParFractal, this);
	QObject::connect(queueFlightAnimation, SIGNAL(updateProgressAndStatus(const QString&, const QString&, double, cProgressText::enumProgressType)),
									 this, SIGNAL(updateProgressAndStatus(const QString&, const QString&, double, cProgressText::enumProgressType)));
	QObject::connect(queueFlightAnimation, SIGNAL(updateProgressHide(cProgressText::enumProgressType)),
									 this, SIGNAL(updateProgressHide(cProgressText::enumProgressType)));
	QObject::connect(queueFlightAnimation, SIGNAL(updateStatistics(cStatistics)),
									 this, SIGNAL(updateStatistics(cStatistics)));
	QObject::connect(queueKeyframeAnimation, SIGNAL(updateProgressAndStatus(const QString&, const QString&, double, cProgressText::enumProgressType)),
									 this, SIGNAL(updateProgressAndStatus(const QString&, const QString&, double, cProgressText::enumProgressType)));
	QObject::connect(queueKeyframeAnimation, SIGNAL(updateProgressHide(cProgressText::enumProgressType)),
									 this, SIGNAL(updateProgressHide(cProgressText::enumProgressType)));
	QObject::connect(queueKeyframeAnimation, SIGNAL(updateStatistics(cStatistics)),
									 this, SIGNAL(updateStatistics(cStatistics)));
}
开发者ID:gitter-badger,项目名称:mandelbulber2,代码行数:32,代码来源:render_queue.cpp

示例6: PvmfPortBaseImpl

H223LowerLayer::H223LowerLayer(int32 aPortTag, TPVLoopbackMode aLoopbackMode)
        :   PvmfPortBaseImpl(aPortTag, this),
        OsclTimerObject(OsclActiveObject::EPriorityHigh, "H223AO"),
        iTimerIntervalNum(0),
        iMinTimerResolution(TIMER_RES),
        iObserver(NULL),
        iMemFragmentAlloc(NULL),
        iDispatchPacketAlloc(NULL),
        iMediaDataImplMemAlloc(NULL),
        iMediaMsgPoolAlloc(NULL),
        iSendPduSz(0),
        iPduSize(H223_DEFAULT_PDU_SIZE),
        iStuffingSize(0),
        iTimer("H223LL"),
        iLoopbackMode(aLoopbackMode),
        iTimerCnt(0),
        iBytesSent(0),
        iMediaDataAlloc(&iMemAlloc),
        iLogger(NULL),
        iDemuxBuffer(NULL),
        iDemuxBufferPos(NULL),
        iIdleSyncCheckBuffer(NULL)
{
    iLogger = PVLogger::GetLoggerObject("3g324m.h223.lowerlayer");
    AddToScheduler();
    InitParams();
    ResetStats();
}
开发者ID:0omega,项目名称:platform_external_opencore,代码行数:28,代码来源:lowerlayer.cpp

示例7: PDRecon

TV::TV(unsigned width, unsigned height, unsigned coils, unsigned frames,
       BaseOperator *mrOp)
  : PDRecon(width, height, 0, coils, frames, mrOp)
{
  InitParams();
  InitTempVectors();
}
开发者ID:IMTtugraz,项目名称:AVIONIC,代码行数:7,代码来源:tv.cpp

示例8: Initialize

mfxStatus QSV_Encoder_Internal::Open(qsv_param_t * pParams)
{
	mfxStatus sts = MFX_ERR_NONE;

	if (m_bUseD3D11)
		// Use D3D11 surface
		sts = Initialize(m_impl, m_ver, &m_session, &m_mfxAllocator);
	else
		// Use system memory
		sts = Initialize(m_impl, m_ver, &m_session, NULL);

	MSDK_CHECK_RESULT(sts, MFX_ERR_NONE, sts);

	m_pmfxENC = new MFXVideoENCODE(m_session);

	InitParams(pParams);

	sts = m_pmfxENC->Query(&m_mfxEncParams, &m_mfxEncParams);
	MSDK_IGNORE_MFX_STS(sts, MFX_WRN_INCOMPATIBLE_VIDEO_PARAM);
	MSDK_CHECK_RESULT(sts, MFX_ERR_NONE, sts);

	sts = AllocateSurfaces();
	MSDK_CHECK_RESULT(sts, MFX_ERR_NONE, sts);

	sts = m_pmfxENC->Init(&m_mfxEncParams);
	MSDK_CHECK_RESULT(sts, MFX_ERR_NONE, sts);

	sts = GetVideoParam();
	MSDK_CHECK_RESULT(sts, MFX_ERR_NONE, sts);

	sts = InitBitstream();
	MSDK_CHECK_RESULT(sts, MFX_ERR_NONE, sts);

	return sts;
}
开发者ID:AnthonySuper,项目名称:obs-studio,代码行数:35,代码来源:QSV_Encoder_Internal.cpp

示例9: while

int CCameraAnim::DestroyObjs()
{
	int camno;
	for( camno = 0; camno < CAMERANUMMAX; camno++ ){
		CCameraKey* delck = m_firstkey[ camno ];
		CCameraKey* nextck = 0;
		while( delck ){
			nextck = delck->next;
			delete delck;
			delck = nextck;
		}
	}

	CCameraSWKey* delcswk = m_firstsw;
	CCameraSWKey* nextcswk = 0;
	while( delcswk ){
		nextcswk = delcswk->next;
		delete delcswk;
		delcswk = nextcswk;
	}

	InitParams();

	return 0;
}
开发者ID:Ochakko,项目名称:Easy3D,代码行数:25,代码来源:CameraAnim.cpp

示例10: Release

bool APerlinNoise2D::Init(int nBufferWidth, int nBufferHeight, float vAmplitude, int nWaveLength, float vPersistence, int nOctaveNum, ADWORD dwRandSeed)
{
  // First try to release old resource;
  Release();

  int  i, x, y, k;

  m_dwSeed = dwRandSeed;

  // generate loop back smoothed random buffer
  if( nBufferWidth <= 0 || nBufferHeight <= 0 )
    return false;

  m_nBufferWidth = nBufferWidth;
  m_nBufferHeight = nBufferHeight;
  float * pValues = (float *) a_malloc(sizeof(float) * m_nBufferWidth * m_nBufferHeight);
  if( NULL == pValues )
    return false;

  m_pValues = (NOISEVALUE *) a_malloc(sizeof(NOISEVALUE) * m_nBufferWidth * m_nBufferHeight);
  if( NULL == m_pValues )
    return false;

  for(k=0; k<3; k++)
  {
    // First create random number buffer;
    for(i=0; i<m_nBufferWidth * m_nBufferHeight; i++)
      pValues[i] = RandFloat();
    
    // Now smooth the random number buffer;
    for(x=0; x<m_nBufferWidth; x++)
    {
      for(y=0; y<m_nBufferHeight; y++)
      {
        int n = y * m_nBufferWidth + x;

        int nLastX, nNextX, nLastY, nNextY;
        nLastX = x - 1;
        if( nLastX < 0 ) nLastX += m_nBufferWidth;
        nNextX = x + 1;
        if( nNextX >= m_nBufferWidth ) nNextX -= m_nBufferWidth;

        nLastY = y - 1;
        if( nLastY < 0 ) nLastY += m_nBufferHeight;
        nNextY = y + 1;
        if( nNextY >= m_nBufferHeight ) nNextY -= m_nBufferHeight;

#define NOISEVALUEFUNC2D(x, y) (pValues[(y) * m_nBufferWidth + (x)])
        m_pValues[n].v[k] = 
          1.0f / 16.0f * (NOISEVALUEFUNC2D(nLastX, nLastY) + NOISEVALUEFUNC2D(nLastX, nNextY) + NOISEVALUEFUNC2D(nNextX, nLastY) + NOISEVALUEFUNC2D(nNextX, nNextY)) + 
          1.0f / 8.0f * (NOISEVALUEFUNC2D(x, nLastY) + NOISEVALUEFUNC2D(x, nNextY) + NOISEVALUEFUNC2D(nLastX, y) + NOISEVALUEFUNC2D(nNextX, y)) + 
          1.0f / 4.0f * (NOISEVALUEFUNC2D(x, y));
      }
    }
  }

  a_free(pValues);
  return InitParams(vAmplitude, nWaveLength, vPersistence, nOctaveNum);
}
开发者ID:fengqk,项目名称:Art,代码行数:59,代码来源:APerlinNoise2D.cpp

示例11: InitParamsGB

/**
 * Sets its default value for each benchmark parameter for the GenBench function.
 *
 * @param PB a pointer to a structure containing benchmark parameters for this session
 */
static void
InitParamsGB (UflipParams *PB)
{
  InitParams (PB);
  strcpy (PB->expPlan, "ExpPlan.txt");
  strcpy (PB->expSelect, "ExpSel.txt");
  strcpy (PB->outName, "Bench"SCRIPT_EXTENSION);
}
开发者ID:blusjune,项目名称:.bsrc,代码行数:13,代码来源:input.c

示例12: InitParams

CSndAnim::CSndAnim( char* srcname, int srcmotkind )
{
	InitParams();
	if( srcname && *srcname ){
		strcpy_s( m_animname, 256, srcname );
	}
	m_motkind = srcmotkind;
}
开发者ID:toughie88,项目名称:Easy3D-1,代码行数:8,代码来源:SndAnim.cpp

示例13: glBindVertexArray

void Particles::Init()
{
	glBindVertexArray(arrayObject);
	InitParams();
	InitMemory();
	InitParticle();
	glBindVertexArray(0);
}
开发者ID:cdf1989,项目名称:FluidSim,代码行数:8,代码来源:Particles.cpp

示例14: DestroyObjs

int CMeshInfo::ResetParams()
{
	int ret;
	DestroyObjs();
	InitParams();
	ret = CreateObjs();
	return ret;
}
开发者ID:toughie88,项目名称:Easy3D-1,代码行数:8,代码来源:basedat.cpp

示例15: InitParams

CMeshInfo::CMeshInfo()
{
	int	ret;
	InitParams();
	ret = CreateObjs();
	if( ret )
		isinit = 0;
}
开发者ID:toughie88,项目名称:Easy3D-1,代码行数:8,代码来源:basedat.cpp


注:本文中的InitParams函数示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。