示例#1
0
LLMediaImplExample1::LLMediaImplExample1() :
    mMediaPixels( 0 )
{
    setRequestedMediaSize( 400, 200 );
    setMediaDepth( 3 );

    srand( (unsigned int)(time( NULL )) );
}
示例#2
0
LLMediaImplExample2::LLMediaImplExample2() :
	mMediaPixels( 0 )
{
	setRequestedMediaSize( 500, 500 );
	setMediaDepth( 3 );

	mXpos = ( getMediaWidth() / 2 ) + rand() % ( getMediaWidth() / 16 ) - ( getMediaWidth() / 32 );
	mYpos = ( getMediaHeight() / 2 ) + rand() % ( getMediaHeight() / 16 ) - ( getMediaHeight() / 32 );

	srand( (unsigned int)(time( NULL )) );
}
LLMediaImplLLMozLib::LLMediaImplLLMozLib() :
    mBrowserWindowWidth( 800 ),
    mBrowserWindowHeight( 600 ),
    mMediaDataWidth( 0 ),
    mMediaDataHeight( 0 ),
    mWindowId( 0 ),
    mNeedsUpdate( false )
{
    setRequestedMediaSize( mBrowserWindowWidth, mBrowserWindowHeight );

    setMediaDepth( 4 );
}