xboxscene.org forums

Author Topic: Programmer's Notepad 2 : Smallest Devtool For Openxdk  (Read 96 times)

TMaul

  • Archived User
  • Jr. Member
  • *
  • Posts: 63
Programmer's Notepad 2 : Smallest Devtool For Openxdk
« on: January 12, 2007, 11:56:00 AM »

Cool - good tip openxdkman. Much easier than having a cygwin window and a half dozen copies of notepad open. wink.gif
Logged

openxdkman

  • Archived User
  • Hero Member
  • *
  • Posts: 550
Programmer's Notepad 2 : Smallest Devtool For Openxdk
« Reply #1 on: January 20, 2007, 02:47:00 AM »

Thx!

new method for pn2 (more flexible) :

add this to cygwin.bat (after echo off and before the call to bash) :
set CYGWINPARAM1=%1
set CYGWINPARAM2=%2
set CYGWINPARAM3=%3
set CYGWINPARAM4=%4
set CYGWINPARAM5=%5

add this to .bashrc (so it's executed by bash, no problem):
if [ -n "$CYGWINPARAM1" ]; then
   cd $CYGWINPARAM1
   if [ -n "$CYGWINPARAM2" ]; then
      $CYGWINPARAM2 $CYGWINPARAM3 $CYGWINPARAM4 $CYGWINPARAM5
   fi
   exit
fi


In PN2, now, go in Tools->Options. Select Tools on bottom left. Select "(None) - Global tools" in Scheme combolist at top. Click Add. Fill in the fields :

Name: Make
Command: c:\cygwin\cygwin.bat
Folder: %d
Parameters: %d make
Shortcut: F9 (select field and press F9)
Save: All files

Name: Make clean
Command: c:\cygwin\cygwin.bat
Folder: %d
Parameters: %d make clean
Shortcut: F12 (select field and press F12)
Save: All files

Logged

openxdkman

  • Archived User
  • Hero Member
  • *
  • Posts: 550
Programmer's Notepad 2 : Smallest Devtool For Openxdk
« Reply #2 on: January 24, 2007, 02:17:00 AM »

These ones are useful for compiling vertex and pixel shaders (for pbKit):

Name: Cg (vs)
Command: cgc.exe
Folder: %d
Parameters: -profile vs_1_1 -o %n.vsh %n.cg
Shortcut: F1 (select field and press F1)
Save: All files
This tool will modify the current file: Yes

Name: Vsa
Command: vsa.exe
Folder: %d
Parameters: /nologo /Vd /Fh %n.h %n.vsh
Shortcut: F2 (select field and press F2)
Save: All files
This tool will modify the current file: Yes

Name: Cg (ps)
Command: cgc.exe
Folder: %d
Parameters: -profile ps_1_1 -o %n.psh %n.cg
Shortcut: F3 (select field and press F3)
Save: All files
This tool will modify the current file: Yes

Name: Psa
Command: psa.exe
Folder: %d
Parameters: /nologo /Vd /Fh %n.h %n.psh
Shortcut: F4 (select field and press F4)
Save: All files
This tool will modify the current file: Yes

If you create vs.cg, select it and press F1 (.cg=>.vsh) & F2 (.vsh=>.h)
If you create ps.cg, select it and press F3 (.cg=>.psh) & F4 (.psh=>.h)
Take look at vs.vsh to see in which register each vertex data is expected
You can select any of the file (.cg, .vsh, .psh or .h) and press F1,F2,F3 or F4.
If selected file is result of compilation/assembly, its contents is refreshed automatically.
Logged