Jump to content

  • Log In with Google      Sign In   
  • Create Account

Banner advertising on our site currently available from just $5!


1. Learn about the promo. 2. Sign up for GDNet+. 3. Set up your advert!


kunajk

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

Hello,

eKeyuy6.png

 

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

Hello, 

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. 


PARTNERS