MCPcopy Create free account
hub / github.com/MyGUI/mygui / frameEntered

Method frameEntered

MyGUIEngine/src/MyGUI_Canvas.cpp:235–262  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

233 }
234
235 void Canvas::frameEntered(float _time)
236 {
237 int width = mReqTexSize.width;
238 int height = mReqTexSize.height;
239 TextureUsage usage = getDefaultTextureUsage();
240 PixelFormat format = getDefaultTextureFormat();
241
242 validate(width, height, usage, format);
243
244 bool create = checkCreate(width, height);
245
246 if (mTexResizeMode == TRM_PT_CONST_SIZE)
247 create = false;
248
249 if (create)
250 {
251 createExactTexture(width, height, usage, format);
252 correctUV();
253 }
254 else // I thought order is important
255 {
256 correctUV();
257 requestUpdateCanvas(this, Event(false, true, mInvalidateData));
258 }
259
260 mInvalidateData = false;
261 frameAdvise(false);
262 }
263
264 void Canvas::textureInvalidate(ITexture* _texture)
265 {

Callers

nothing calls this directly

Calls 1

EventClass · 0.85

Tested by

no test coverage detected