Hello
I have crash in the construction Scene::Scene() https://github.com/8Observer8/ObjLoader_v1_0_0
You should run my application -> Click "Load" -> Select the file "Plane.observerFormat"
I think that I cannot fill std::vector like this:
#include <iostream>
#include <vector>
void fill( std::vector<float> &vec1, std::vector<float> &vec2 );
void show( const std::vector<float> &vec );
int main()
{
std::vector<float> vec1;
std::vector<float> vec2;
fill( vec1, vec2 );
show( vec1 );
std::cout << "\n";
show( vec2 );
return 0;
}
void fill( std::vector<float> &vec1 , std::vector<float> &vec2 )
{
vec1.push_back( -0.5f );
vec1.push_back( 0.5f );
vec1.push_back( 1.5f );
vec2.push_back( 0.5f );
vec2.push_back( 0.5f );
vec2.push_back( 1.5f );
}
void show( const std::vector<float> &vec )
{
for( unsigned int i = 0; i < vec.size(); ++i )
{
std::cout << vec[i] << "/n";
}
}
#include <iostream>
#include <vector>
void fill( std::vector<float> &vec1, std::vector<float> &vec2 );
void show( const std::vector<float> &vec );
int main()
{
std::vector<float> vec1;
std::vector<float> vec2;
fill( vec1, vec2 );
show( vec1 );
std::cout << "\n";
show( vec2 );
return 0;
}
void fill( std::vector<float> &vec1 , std::vector<float> &vec2 )
{
vec1.push_back( -0.5f );
vec1.push_back( 0.5f );
vec1.push_back( 1.5f );
vec2.push_back( 0.5f );
vec2.push_back( 0.5f );
vec2.push_back( 1.5f );
}
void show( const std::vector<float> &vec )
{
for( unsigned int i = 0; i < vec.size(); ++i )
{
std::cout << vec[i] << "/n";
}
}
To copy to clipboard, switch view to plain text mode
Bookmarks