Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.c++ > #12913

Re: convert vector* to float

From Victor Bazarov <v.bazarov@comcast.invalid>
Newsgroups comp.lang.c++
Subject Re: convert vector* to float
Date 2011-12-31 09:29 -0500
Organization A noiseless patient Spider
Message-ID <jdn68b$9p3$1@dont-email.me> (permalink)
References <8207199f-8304-4ce5-9bec-78c31c55f355@o14g2000vbo.googlegroups.com> <xn0hnidxnhdm7nm002@news.astraweb.com> <fbd501d4-542d-4cc8-bb17-40a1039f610a@o14g2000vbo.googlegroups.com>

Show all headers | View raw


On 12/31/2011 9:13 AM, ahso wrote:
> I want to use it with glVertex3f and I get values like altitude from
> that vector:
>
> glVertex3f(lx+1059, ly+749, ProbeResultat[i])->locZ);
>
> it's declared as:
> std::vector<Probe_t*>	ProbeResultat;
>
> Many thanks

So, the expression 'ProbeResultat[i]' yields 'a pointer to Probe_t'. 
The third argument of 'glVertex3f' (I'm guessing here, OpenGL is not 
defined by C++ language), is the 'GLfloat' that you have a problem with, 
right?  Count the parentheses.

V
-- 
I do not respond to top-posted replies, please don't ask

Back to comp.lang.c++ | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread


Thread

convert vector* to float ahso <ahso47@yahoo.com> - 2011-12-31 04:32 -0800
  Re: convert vector* to float "Asger Joergensen" <Junk@Asger-P.dk> - 2011-12-31 13:16 +0000
    Re: convert vector* to float ahso <ahso47@yahoo.com> - 2011-12-31 06:13 -0800
      Re: convert vector* to float Victor Bazarov <v.bazarov@comcast.invalid> - 2011-12-31 09:29 -0500
      Re: convert vector* to float "Asger Joergensen" <Junk@Asger-P.dk> - 2011-12-31 14:30 +0000

csiph-web