Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6021629
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 23, 20262026-05-23T03:44:28+00:00 2026-05-23T03:44:28+00:00

I have a vector called actorVector which stores an array of objects of type

  • 0

I have a vector called actorVector which stores an array of objects of type actorManager.

The actorManager class has a private attribute, which is also an object of type GLFrame. It has an accessor, getFrame(), which returns a pointer to the GLFrame object.

I have passed a pointer of actorVector to a function, so its a pointer to a vector of objects of type actorManager.

I need to pass the GLFrame object as a parameter to this function:

modelViewMatrix.MultMatrix(**GLFrame isntance**);

I’ve currently been trying to do it as such, but im not getting any results.

modelViewMatrix.MultMatrix(*(*actorVector)[i].getFrame());

Any ideas?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-23T03:44:29+00:00Added an answer on May 23, 2026 at 3:44 am

    Assuming MultMatrix takes an ActorManager by value or by reference (as opposed to by pointer), then you want this:

    modelViewMatrix.MultMatrix(*((*actorVector)[i].getFrame()));
    

    Note that the precedence rules mean that the above is equivalent to:

    modelViewMatrix.MultMatrix(*(*actorVector)[i].getFrame());
    

    However, that’s what you already have, so there must be something you’re not telling us…

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a class called SparseMatrix which contain a private vector of type Cell.
I have a vector-like class that contains an array of objects of type T
I have MyClass , which stores two integers, and I have a Vector<MyClass> called
Suppose we have a vector/array in C++ and we wish to count which of
I have a vector called players and a class called Player. And what I'm
I have a vector of pointers to Mouse objects called 'mice'. I'm passing the
I have a class that creates a vector of objects. In the deconstructor for
I have a container class (called Atom) that I want to store objects of
I have the following class: Class L{ public: bool foo(vector<bool> & data); private: C**
I have a class called Object : class Object { public: Vector pos; float

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.