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

Subversion Repositories wf3d

Compare Revisions

  • This comparison shows the changes necessary to convert path
    /wf3d/trunk/clib
    from Rev 2 to Rev 4
    Reverse comparison

Rev 2 → Rev 4

/mp_vector3.c
9,7 → 9,7
// vector3 implementation
//
// Author:
// Kenji Ishimaru (kenji.ishimaru@prtissimo.com)
// Kenji Ishimaru (info.wf3d@gmail.com)
//
//======================================================================
//
/mp_lib.c
9,7 → 9,7
// C library implementation
//
// Author:
// Kenji Ishimaru (kenji.ishimaru@prtissimo.com)
// Kenji Ishimaru (info.wf3d@gmail.com)
//
//======================================================================
//
84,6 → 84,7
 
 
void mpInit() {
hw_init();
video_init();
mp_matrix4_identity(&cur_pm);
mp_matrix4_identity(&cur_mm);
273,7 → 274,12
printf("draw array size over!!\n");
while(1);
}
#ifdef __DE0_NANO_SOC__
D3D_DMA_ADRS = ((unsigned int)p_vertex_array | 0x80000000); //ACP offset
// D3D_DMA_ADRS = p_vertex_array;
#else
D3D_DMA_ADRS = p_vertex_array;
#endif
D3D_DMA_STATUS = 0; // int mask clear
D3D_DMA_START = 0x00010101; // default CCW
while(1) {
/mp_vector4.c
9,7 → 9,7
// vector4 implementation
//
// Author:
// Kenji Ishimaru (kenji.ishimaru@prtissimo.com)
// Kenji Ishimaru (info.wf3d@gmail.com)
//
//======================================================================
//
/mp_matrix3.c
9,7 → 9,7
// matrix3 class implementation
//
// Author:
// Kenji Ishimaru (kenji.ishimaru@prtissimo.com)
// Kenji Ishimaru (info.wf3d@gmail.com)
//
//======================================================================
//
/mp_matrix4.c
1,3 → 1,44
//=======================================================================
// Project Monophony
// Wire-Frame 3D Graphics Accelerator IP Core
//
// File:
// mp_matrix4.c
//
// Abstract:
// matrix4 class implementation
//
// Author:
// Kenji Ishimaru (info.wf3d@gmail.com)
//
//======================================================================
//
// Copyright (c) 2015, Kenji Ishimaru
// All rights reserved.
//
// Redistribution and use in source and binary forms, with or without
// modification, are permitted provided that the following conditions are met:
//
// -Redistributions of source code must retain the above copyright notice,
// this list of conditions and the following disclaimer.
// -Redistributions in binary form must reproduce the above copyright notice,
// this list of conditions and the following disclaimer in the documentation
// and/or other materials provided with the distribution.
//
// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
// AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO,
// THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
// PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR
// CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
// EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
// PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS;
// OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
// WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR
// OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE,
// EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
//
// Revision History
 
#include <math.h>
#include "mp_matrix4.h"
#include "mp_lib.h"
/hw_dep/de0/mp_hwdep.c
9,7 → 9,7
// Hardware dependent function
//
// Author:
// Kenji Ishimaru (kenji.ishimaru@prtissimo.com)
// Kenji Ishimaru (info.wf3d@gmail.com)
//
//======================================================================
//
78,3 → 78,7
else fb_front = 0;
FRONT_BUFFER = fb_front;
}
 
void hw_init() {
}
 
/hw_dep/de0/mp_hwdep.h
9,7 → 9,7
// Hardware dependent function header
//
// Author:
// Kenji Ishimaru (kenji.ishimaru@prtissimo.com)
// Kenji Ishimaru (info.wf3d@gmail.com)
//
//======================================================================
//
41,6 → 41,7
 
#ifndef __HW_DEP_H__
#define __HW_DEP_H__
#include <unistd.h>
#include <system.h>
// 0 - 0x007FFFFF
#define FRAME_BUFFER_0 NEW_SDRAM_CONTROLLER_0_BASE+0x00580000
87,4 → 88,5
void buffer_clear(unsigned int c,int bank);
void video_init();
void video_swap();
void hw_init();
#endif
/mp_vector3.h
9,7 → 9,7
// vector3 header
//
// Author:
// Kenji Ishimaru (kenji.ishimaru@prtissimo.com)
// Kenji Ishimaru (info.wf3d@gmail.com)
//
//======================================================================
//
/mp_lib.h
9,7 → 9,7
// C library header file
//
// Author:
// Kenji Ishimaru (kenji.ishimaru@prtissimo.com)
// Kenji Ishimaru (info.wf3d@gmail.com)
//
//======================================================================
//
/mp_vector4.h
9,7 → 9,7
// vector4 header
//
// Author:
// Kenji Ishimaru (kenji.ishimaru@prtissimo.com)
// Kenji Ishimaru (info.wf3d@gmail.com)
//
//======================================================================
//
/mp_matrix3.h
9,7 → 9,7
// matrix3 class header
//
// Author:
// Kenji Ishimaru (kenji.ishimaru@prtissimo.com)
// Kenji Ishimaru (info.wf3d@gmail.com)
//
//======================================================================
//
/mp_matrix4.h
9,7 → 9,7
// 4x4 matrix header
//
// Author:
// Kenji Ishimaru (kenji.ishimaru@prtissimo.com)
// Kenji Ishimaru (info.wf3d@gmail.com)
//
//======================================================================
//

powered by: WebSVN 2.1.0

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