####################################################################
# Copyright (c) 2019 Nobuyuki Umetani                              #
#                                                                  #
# This source code is licensed under the MIT license found in the  #
# LICENSE file in the root directory of this source tree.          #
####################################################################


import sys, cv2
sys.path.append("..")
import PyDelFEM2 as dfm2
import PyDelFEM2.gl._glfw

def main():
  path_img = "../test_inputs/lenna.png"
  np_img = cv2.imread(path_img)
  axis = dfm2.gl.AxisXYZ(100)
  tex = dfm2.gl.get_texture(np_img)
  dfm2.gl._glfw.winDraw3d([axis,tex],winsize=(400,300),
                          camera_orientation=[0,0,+1, 0,-1,0])

if __name__ == "__main__":
  main()