GooderSteel Posted June 22, 2016 Posted June 22, 2016 Hello! There was such problem. I understand with examples for C ++. And to me gives out the following error almost in each of them of following type: Error 23 error C2653: ' Draw ': is not a class or namespace name E:\CreateGame\test_functions\Source\App.cpp. Prompt, please, that I not so do? How to make, that this function found? Quote
martyj Posted June 22, 2016 Posted June 22, 2016 You need to use Context. Context::SetBlendMode Quote
GooderSteel Posted June 22, 2016 Author Posted June 22, 2016 Me in the given example the line more interests: Draw::Text(aabb.Debug(), 2, 2); How to be with it? Context::SetBlendMode, by the way, does not work, says to me that it is an error ( Quote
martyj Posted June 22, 2016 Posted June 22, 2016 There is no "Text" function. There is "Context::DrawText" http://www.leadwerks.com/werkspace/page/api-reference/_/context/contextdrawtext-r731http://www.leadwerks.com/werkspace/page/api-reference/_/context/contextdrawtext-r731 Quote
GooderSteel Posted June 22, 2016 Author Posted June 22, 2016 Thanks. Has understood as it is necessary to write) //Display the object debug data context->SetBlendMode(Blend::Alpha); context->DrawText(aabb.Debug(), 2, 2); context->SetBlendMode(Blend::Solid); Only it turns out that the majority of examples has become outdated then. ( It will be heavy studies. Quote
GooderSteel Posted June 22, 2016 Author Posted June 22, 2016 http://www.leadwerks.com/werkspace/page/documentation/_/object/objectdebug-r27 http://www.leadwerks.com/werkspace/page/api-reference/_/object/objectaddref-r579 1 Quote
reepblue Posted June 23, 2016 Posted June 23, 2016 It's old documentation I assume. Hopefully Josh will fix this. Quote Cyclone - Ultra Game System - Component Preprocessor - Tex2TGA - Darkness Awaits Template (Leadwerks) If you like my work, consider supporting me on Patreon!
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.