MCPcopy Create free account
hub / github.com/axmolengine/axmol / setDesignResolutionSize

Method setDesignResolutionSize

core/platform/RenderView.cpp:178–191  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

176}
177
178void RenderView::setDesignResolutionSize(float width, float height, ResolutionPolicy resolutionPolicy)
179{
180 AXASSERT(resolutionPolicy != ResolutionPolicy::UNKNOWN, "should set resolutionPolicy");
181
182 if (width == 0.0f || height == 0.0f)
183 {
184 return;
185 }
186
187 _designResolutionSize.set(width, height);
188 _resolutionPolicy = resolutionPolicy;
189
190 updateDesignResolutionSize();
191}
192
193const Vec2& RenderView::getDesignResolutionSize() const
194{

Calls 1

setMethod · 0.45

Tested by 2

runThisTestMethod · 0.64
ChipmunkTestBedMethod · 0.64