Home » U++ Library support » Draw, Display, Images, Bitmaps, Icons » Help Propblem work buffer
Help Propblem work buffer [message #45014] |
Mon, 17 August 2015 13:09 |
situkhan
Messages: 6 Registered: August 2015 Location: Russia
|
Promising Member |
|
|
void AboutForm::Paint(Draw& w)
{
if(m_Tick++ > 10)
{
m_Tick = 0;
m_Water.WarpBlob(rand()%320,rand()%512,rand()%320,rand()%302,m_Water.m_iHpage);
}
m_Water.Fdensity = 5;
m_Water.FbDrawWithLight = FALSE;
m_Water.FbCalcBigFilter = FALSE;
//// DWORD m_ImageIn[320*512],m_ImageOut[320*512];
m_Water.Render(m_ImageIn,m_ImageOut);
memcpy((void*)m_DestImage.Begin(),(void*)m_ImageOut,320*512*4); /// Direct
//w.DrawImage(0,0,320,512, m_DestImage); //// ---- Ceases to work after the first run ???
w.DrawImage(1,1,320-1,512-1, m_DestImage); //// ---- Working
SetTimeCallback(10, THISBACK(Render));
}
|
|
|
Goto Forum:
Current Time: Sun Nov 03 00:20:09 CET 2024
Total time taken to generate the page: 0.02177 seconds
|