Back to index

nux  3.0.0
Classes | Namespaces | Functions | Variables
coverflow.cpp File Reference
#include "Nux/Nux.h"
#include "Nux/HLayout.h"
#include "NuxGraphics/GraphicsDisplay.h"
#include "NuxGraphics/GLShader.h"
#include "NuxGraphics/GpuDevice.h"
#include "NuxGraphics/GLDeviceObjects.h"
#include "NuxGraphics/GraphicsEngine.h"
#include "Nux/Coverflow.h"
#include "Nux/CoverflowItem.h"

Go to the source code of this file.

Classes

class  nux::BasicCoverflowItem

Namespaces

namespace  nux
 The Writer singleton is responsible for controlling where the logging message go.

Functions

void CoverflowThread (nux::NThread *thread, void *InitData)
int main ()

Variables

const char * movie_list []

Function Documentation

void CoverflowThread ( nux::NThread thread,
void *  InitData 
)

Definition at line 118 of file coverflow.cpp.

{
  nux::Coverflow* coverflow = new nux::Coverflow();
  coverflow->fov = 45;
  coverflow->true_perspective = false;
  coverflow->folding_angle = 45;
  coverflow->reflection_size = 0.5f;
  coverflow->show_reflection = true;
  nux::HLayout* main_layout(new nux::HLayout(NUX_TRACKER_LOCATION));
  main_layout->AddView(coverflow, 1, nux::MINOR_POSITION_CENTER, nux::MINOR_SIZE_FULL);

  static_cast<nux::WindowThread*>(thread)->SetLayout(main_layout);

  int i = 0;
  nux::CoverflowModel::Ptr model = coverflow->model();
  std::string base_path = PKGDATADIR"/UITextures/";
  while(movie_list[i] != NULL)
  {
    std::string name = "Nux The Movie";
    std::string movie_path = base_path + movie_list[i];
    nux::CoverflowItem::Ptr item(new nux::BasicCoverflowItem(name, movie_path));
    model->AddItem(item);
    i++;
  }
}

Here is the call graph for this function:

Here is the caller graph for this function:

int main ( )

Definition at line 144 of file coverflow.cpp.

{
  nux::NuxInitialize(0);

  std::unique_ptr<nux::WindowThread> wt(nux::CreateGUIThread("CoverFlow", 1100, 480, 0, &CoverflowThread, 0));
  wt->Run(0);

  return 0;
}

Here is the call graph for this function:


Variable Documentation

const char* movie_list[]

Definition at line 21 of file coverflow.cpp.