Overview
Examples
Screenshots
Comparisons
Applications
Download
Documentation
Tutorials
Bazaar
Status & Roadmap
FAQ
Authors & License
Forums
Funding Ultimate++
Search on this site
Search in forums












SourceForge.net Logo
Home » U++ Library support » Look and Chameleon Technology » The problem with the operation of the buffer.
The problem with the operation of the buffer. [message #45013] Mon, 17 August 2015 10:52
situkhan is currently offline  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));
}
Previous Topic: [Solved]Layout foreground and text color selection
Next Topic: A little theming
Goto Forum:
  


Current Time: Thu Mar 28 20:36:57 CET 2024

Total time taken to generate the page: 0.01068 seconds