Jump to content

  • Log In with Google      Sign In   
  • Create Account

We need your help!

We need 1 more developer from Canada and 12 more from Australia to help us complete a research survey.

Support our site by taking a quick sponsored survey and win a chance at a $50 Amazon gift card. Click here to get started!


Member Since 23 Feb 2013
Offline Last Active Nov 05 2013 04:50 AM

Topics I've Started

[Bitmap Font Generator] One glyph for multiple characters

09 October 2013 - 06:13 AM




I offten use only uppercase fonts. Can I save space on texture?


asOBJ_REF and asOBJ_VALUE at the same time

23 February 2013 - 07:25 AM


I want register function

void StringUtils::removeSections( std::string* result, const std::string& html, const std::string& startStr, const std::string& endStr, bool withTags )


as script global function:


r = engine->RegisterGlobalFunction("void removeSections(string@, const string& in, const string& in, const string& in, bool)", asFUNCTION(StringUtils::removeSections), asCALL_CDECL); assert( r >= 0 );


and use it in script in that way:


	string strToRet;
	removeSections(@strToRet, str, "<--", "-->", true);
	print(strToRet + "\n");


But as i undestrund, to use "string@" the string must be the ref type. So I am confused, how make string Ref and Value type at the same time.