Welcome Guest Search | Active Topics | Log In | Register

How to pass more than one value to squirrel from c++
#1 Posted : Thursday, February 24, 2022 2:34:01 PM(UTC)
Rank: Newbie

Groups: Registered
Joined: 2/24/2022(UTC)
Posts: 1
Location: india

Thanks: 0 times
Was thanked: 0 time(s) in 0 post(s)
Hello people.

I have trouble passing data from c++ to squirrel.
I know sq_pushinteger, sq_pushbool, it all works fine. But i want to pass three values (x-co-ordinate, y co-ordinate and z-co-ordinate). Making three separate function to fetch each of them is unnecessary. Can i have some guidance in tackling this problem. I do not know much about objects or userpointers, but can learn easily if you provide me an example.

Users browsing this topic
Forum Jump  
You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.

Clean Slate theme by Jaben Cargman (Tiny Gecko)
Powered by YAF 1.9.4 | YAF © 2003-2010, Yet Another Forum.NET
This page was generated in 0.050 seconds.