ERIS CORE

◆ Surface() [4/5]

Surface::Surface ( uint16_t *  buffer,
int16_t  width,
int16_t  height 
)
inline

Definition at line 112 of file ILI9341_t3_ERIS.h.

112  {
113  //take an existing buffer as the surface buffer
114  guid = (uint32_t)buffer * ((uint32_t)width<<11) / (1 + (uint32_t)height);
115  pSB = buffer;
116  w = width;
117  h = height;
118  alloc_size = w*h;
119  head = 0; //used for sub surface allocation
120  /*
121  Serial.print(F("M Surface assigned: "));
122  Serial.print(alloc_size);
123  Serial.print(F(" pixels GUID: "));
124  Serial.println(guid);
125  */
126  }
uint32_t head
uint32_t alloc_size
uint16_t * pSB
uint16_t w
uint16_t h
uint32_t guid

References alloc_size, guid, h, head, pSB, and w.