OpenCores
URL https://opencores.org/ocsvn/wf3d/wf3d/trunk

Subversion Repositories wf3d

[/] [wf3d/] [trunk/] [demo_app/] [main_cubes.c] - Diff between revs 2 and 4

Go to most recent revision | Show entire file | Details | Blame | View Log

Rev 2 Rev 4
Line 7... Line 7...
//
//
// Abstract:
// Abstract:
//   3D model(Cubes) rendering sample program.
//   3D model(Cubes) rendering sample program.
//
//
// Author:
// Author:
//   Kenji Ishimaru (kenji.ishimaru@prtissimo.com)
//   Kenji Ishimaru (info.wf3d@gmail.com)
//
//
//======================================================================
//======================================================================
//
//
// Copyright (c) 2015, Kenji Ishimaru
// Copyright (c) 2015, Kenji Ishimaru
// All rights reserved.
// All rights reserved.
Line 37... Line 37...
// OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE,
// OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE,
// EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
// EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
//
//
// Revision History
// Revision History
 
 
#include <stdio.h>
 
#include <unistd.h>
 
#include <system.h>
 
#include "mp_lib.h"
 
#include "mp_hwdep.h"
#include "mp_hwdep.h"
 
#include "mp_lib.h"
 
#include <stdio.h>
 
 
float triangle[] = {
float triangle[] = {
  // front
  // front
  0.25,  0.25, 0.25,  // trianmpe0
  0.25,  0.25, 0.25,  // trianmpe0
  -0.25,  0.25, 0.25,
  -0.25,  0.25, 0.25,
Line 131... Line 129...
}
}
 
 
int main()
int main()
{
{
 
 
  printf("Hello from Nios II!\n");
  printf("Cubes Demo\n");
 
  mpInit();
  buffer_clear(0x00000000,0);
  buffer_clear(0x00000000,0);
  buffer_clear(0x00000000,1);
  buffer_clear(0x00000000,1);
  mpInit();
 
  mp_loop();
  mp_loop();
  return 0;
  return 0;
}
}
 
 
 
 

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.