Author Topic: ORDLL64.dll API  (Read 924 times)

Patrice Terrier

  • Administrator
  • *****
  • Posts: 1788
    • zapsolution
ORDLL64.dll API
« on: March 07, 2020, 11:56:32 am »
ORDLL64.dll

Allow the use of the ObjReader API inside any 64-bit programming language.

Note: Bass.dll (www.un4seen.com) is a prerequisite to play audio animations.

ORDLL64 constants

#define NVIDIA                  1
#define ATI                     2
#define INTEL                   3

#define ALPHA                   1
#define DEMO                    2
#define PLAYAUDIO               3
#define SYNCAUDIO               4
#define ANIMATION               5
#define FPS                     6
#define TURBO                   7
#define NOSYNC                  8

#define LOADED                  9991
#define ENABLED                 9992
#define CHECKED                 9993
#define AUDIO_VOL               9994
#define LOADING                 9995
#define TIMER                   9996
#define FOCUS                   9997



API list

OR_CreateWindow(IN DWORD dwExStyle, IN HWND hParent, IN DWORD dwStyle, IN long x, IN long y, IN long w, IN long h, IN HMENU CtrlID);
Create the OR OpenGL window, could be either a child or a popup window (WS_EX_TOOLWINDOW).

OR_DetectGPU();
Detect between NVIDIA, ATI, INTEL.

OR_GPUinfo();
Return an unicode string about the GPU being used.

OR_About();
Return an unicode string about the model being displayed.

OR_ViewReset();
Restore the model size and location to its default state.

OR_GetAudioVolume();
Return the audio volume setting.

OR_SetAudioVolume(IN long nVolume);
(Bass.dll) adjust the audio level.

OR_ProcessCommandLine(IN WCHAR* lpCmdLine);
Select a specific .obj file or a model folder, using a full qualified path.

OR_Vertices();
Return the number of vertices used by the model.

OR_Triangles();
Return the number of triangles used by the model.

OR_Indices();
Return the number of indices used by the model.

OR_Meshes();
Return the number of meshes used by the model.

OR_Materials();
Return the number of materials used by the model.

OR_ObjSize();
Return the size of the .obj file.

OR_LoadTime();
Return the ellapsed time to load the model in memory.

OR_Version();
Return the DLL version number.

OR_TimerEnable(IN BOOL enable);
Set to TRUE, if you want to use the OR sync timer (see the marquee text in the ORV64 demo project)

OR_SetSwapInterval(IN BOOL bUseInterval);
This is an advanced API
bUseInterval = 1 (Turbo mode, that is the default)
bUseInterval = 2 (Standard mode)
bUseInterval = 0 (no wait state, maximum GPU speed, requires the use of a GPU cooler fan)

New in Version 3.00.06

OR_ObjFileName();
Return an unicode string with the name of the active .obj file.

OR_GPU();
Return the GPU memory percentage used by the application.

OR_CPU();
Return the CPU memory percentage used by the application.

OR_GetAniTick();
Return the last tick used by the OR sync timer.

Note: You must use the OrResource folder aside the ORDLL64.dll.
The .LIB file is inside the ORDLL64.7z attachment.


Updated to version 3.00.05 on 03-09-2020
Updated to version 3.00.06 on 03-24-2020
« Last Edit: March 24, 2020, 07:06:38 pm by Patrice Terrier »
Patrice
(Always working with the latest Windows version available...)

Patrice Terrier

  • Administrator
  • *****
  • Posts: 1788
    • zapsolution
ORV64 C++ version
« Reply #1 on: March 07, 2020, 12:11:24 pm »
ORV64 C++

Is the Visual Studio 2019 project, showing the use of the ORDLL64 API within a 64-bit application.

Note: ORV64 being a viewer only, it uses only a limited subset of the native ObjReader functions.


The source code, allows you to use either a standard Windows GUI or a WinLIFT skinned interface.




Both binary, and source code are attached to this post.

Updated to version 3.00.05 on 03-09-2020
Updated to version 3.00.06 on 03-24-2020

« Last Edit: March 24, 2020, 07:28:42 pm by Patrice Terrier »
Patrice
(Always working with the latest Windows version available...)

Hicham SALMI

  • Newbie
  • *
  • Posts: 1
Re: ORDLL64.dll API
« Reply #2 on: July 05, 2020, 07:43:14 am »
It's an amazing work Patrice. Thank you.

Je suis toujours émerveillé par le gigantesque travail qui est fait ici.

Bon développement cher Patrice.

Patrice Terrier

  • Administrator
  • *****
  • Posts: 1788
    • zapsolution
Re: ORDLL64.dll API
« Reply #3 on: July 05, 2020, 02:35:14 pm »
Hicham

Merci pour le commentaire, en effet certains projets postés sur ce site représentent des mois, voire des années de travail ...

Il en est de même pour la majorité des modèles 3D sur lesquels j'ai passé un temps considérable, à polir les moindres détails afin qu'ils soient le plus proches de la réalité.

Pour moi la programmation est un art, une passion, et quand on aime on ne compte pas ;)
Patrice
(Always working with the latest Windows version available...)